From 95446d4d8c7633b6e6f55e3501c2a10858a5e44a Mon Sep 17 00:00:00 2001 From: scaramallion Date: Sun, 11 Feb 2024 11:06:30 +1100 Subject: [PATCH] Switch out setup in tests --- data_store/tests/test_pydicom.py | 2 +- data_store/tests/test_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"