diff --git a/pytroll_collectors/tests/test_fsspec_to_message.py b/pytroll_collectors/tests/test_fsspec_to_message.py index e95323f..0444fbd 100644 --- a/pytroll_collectors/tests/test_fsspec_to_message.py +++ b/pytroll_collectors/tests/test_fsspec_to_message.py @@ -13,7 +13,7 @@ class TestMessageComposer: """Test case for the message composer.""" - def setup(self): + def setup_method(self): """Set up message composer tests.""" self.ls_output = deepcopy(ls_output) diff --git a/pytroll_collectors/tests/test_geographic_gatherer.py b/pytroll_collectors/tests/test_geographic_gatherer.py index 16ef070..077d2bd 100644 --- a/pytroll_collectors/tests/test_geographic_gatherer.py +++ b/pytroll_collectors/tests/test_geographic_gatherer.py @@ -123,7 +123,7 @@ class TestGeographicGatherer: """Test the top-level geographic gathering.""" @pytest.fixture(autouse=True) - def setup(self, tmp_config_file, tmp_config_parser): + def setup_method(self, tmp_config_file, tmp_config_parser): """Set up things.""" self.config = tmp_config_parser @@ -322,6 +322,7 @@ def test_init_all_sections(self, tmp_config_file): fake_create_publisher_from_dict_config.return_value.start.assert_called_once() def test_fails_unreadable_config(self, tmp_path): + """Test that it fails when the config is unreadable.""" from pytroll_collectors.geographic_gatherer import GeographicGatherer opts = arg_parse(["/thıs/fıle/does/not/exıst"]) with pytest.raises(