Skip to content

Commit

Permalink
✅ added generic test inheritance to TestInverseTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhopkinson26 committed Jun 27, 2024
1 parent c38fc25 commit d945755
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/nominal/test_NominalToIntegerTransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,13 @@ def test_expected_output(self, df, expected):
)


class TestInverseTransform:
class TestInverseTransform(GenericBaseNominalTransformerTests, GenericTransformTests):
"""Tests for NominalToIntegerTransformer.inverse_transform()."""

@classmethod
def setup_class(cls):
cls.transformer_name = "NominalToIntegerTransformer"

@pytest.mark.parametrize(
("df", "expected"),
ta.pandas.adjusted_dataframe_params(d.create_df_1(), d.create_df_1()),
Expand Down

0 comments on commit d945755

Please sign in to comment.