Skip to content

Commit

Permalink
adding another test for data to features transform
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Feb 15, 2024
1 parent 7c0757f commit a1f96ba
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tests/transforms/data_to_features_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
import pytest

# Local imports
from sageworks.core.transforms.data_to_features.light.data_to_features_light import (
DataToFeaturesLight,
)
from sageworks.core.transforms.data_to_features.light.data_to_features_light import DataToFeaturesLight
from sageworks.api.data_source import DataSource


# Simple test of the DataToFeaturesLight functionality
@pytest.mark.long
def test():
def transform_test():
"""Tests for the Data to Features (light) Transforms"""

# Create the class with inputs and outputs and invoke the transform
Expand All @@ -21,5 +20,14 @@ def test():
data_to_features.transform(id_column="id", event_time_column="date")


# Testing the DataSource API to_features() method
@pytest.mark.long
def to_features_test():

ds = DataSource("wine_data")
ds.to_features("wine_features", target_column="wine_class", tags=["wine", "classification"])


if __name__ == "__main__":
test()
transform_test()
to_features_test()

0 comments on commit a1f96ba

Please sign in to comment.