diff --git a/data_store/tests/test_pydicom.py b/data_store/tests/test_pydicom.py index 315ad17..8084feb 100644 --- a/data_store/tests/test_pydicom.py +++ b/data_store/tests/test_pydicom.py @@ -18,7 +18,7 @@ @pytest.mark.skipif(not HAVE_PYDICOM, reason="pydicom not installed") class TestPydicom: """Test the interface with pydicom works correctly.""" - def setup(self): + def setup_method(self): self.data_path = Path(__file__).resolve().parent.parent / "data" def test_pydicom_local(self): diff --git a/data_store/tests/test_utils.py b/data_store/tests/test_utils.py index 0deea3c..b769e96 100644 --- a/data_store/tests/test_utils.py +++ b/data_store/tests/test_utils.py @@ -10,7 +10,7 @@ class TestDataStore: """Test the interface for the data sources""" - def setup(self): + def setup_method(self): self.data_path = Path(__file__).resolve().parent.parent / "data" self.fname = "693_UNCI.dcm"