Skip to content

Commit

Permalink
Rename the parameters passed to test_deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman committed Jun 20, 2023
1 parent f5d3b70 commit f316afe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/io/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
]


@pytest.mark.parametrize("name", _DEPRECATED_ERROR_CLASSES)
@pytest.mark.parametrize("package", ["kedro.io", "kedro.io.core"])
def test_deprecation(name, package):
with pytest.warns(DeprecationWarning, match=f"{repr(name)} has been renamed"):
getattr(importlib.import_module(package), name)
@pytest.mark.parametrize("module_name", ["kedro.io", "kedro.io.core"])
@pytest.mark.parametrize("class_name", _DEPRECATED_ERROR_CLASSES)
def test_deprecation(module_name, class_name):
with pytest.warns(DeprecationWarning, match=f"{repr(class_name)} has been renamed"):
getattr(importlib.import_module(module_name), class_name)


class MyDataSet(AbstractDataSet):
Expand Down

0 comments on commit f316afe

Please sign in to comment.