Skip to content

Commit

Permalink
Make ruff happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Sep 16, 2024
1 parent dcd1018 commit e04ab7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions trolldb/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from trolldb.test_utils.mongodb_instance import running_prepared_database_context


@pytest.fixture()
@pytest.fixture
def caplog(caplog: LogCaptureFixture):
"""This overrides the actual pytest ``caplog`` fixture.
Expand Down Expand Up @@ -50,7 +50,7 @@ async def mongodb_fixture(_run_mongodb_server_instance):
yield


@pytest.fixture()
@pytest.fixture
def check_log(caplog) -> Callable:
"""A fixture to check the logs. It relies on the ``caplog`` fixture.
Expand Down
12 changes: 6 additions & 6 deletions trolldb/tests/test_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from trolldb.test_utils.mongodb_instance import running_prepared_database_context


@pytest.fixture()
@pytest.fixture
def file_message(tmp_data_filename):
"""Create a string for a file message."""
return ('pytroll://segment/raster/L2/SAR file [email protected] 2019-11-05T13:00:10.366023 v1.01 '
Expand All @@ -27,7 +27,7 @@ def file_message(tmp_data_filename):
'"polarization": "hh", "sensor": "sar-c", "format": "GeoTIFF", "pass_direction": "ASCENDING"}')


@pytest.fixture()
@pytest.fixture
def dataset_message(tmp_data_filename):
"""Create a string for a file message."""
return ('pytroll://segment/raster/L2/SAR dataset [email protected] 2019-11-05T13:00:10.366023 v1.01 '
Expand All @@ -38,7 +38,7 @@ def dataset_message(tmp_data_filename):
'"polarization": "hh", "sensor": "sar-c", "format": "GeoTIFF", "pass_direction": "ASCENDING"}')


@pytest.fixture()
@pytest.fixture
def del_message(tmp_data_filename):
"""Create a string for a delete message."""
return ('pytroll://deletion del [email protected] 2019-11-05T13:00:10.366023 v1.01 '
Expand All @@ -49,21 +49,21 @@ def del_message(tmp_data_filename):
'"polarization": "hh", "sensor": "sar-c", "format": "GeoTIFF", "pass_direction": "ASCENDING"}')


@pytest.fixture()
@pytest.fixture
def unknown_message(tmp_data_filename):
"""Create a string for an unknown message."""
return ("pytroll://deletion some_unknown_key [email protected] 2019-11-05T13:00:10.366023 v1.01 "
"application/json {}")


@pytest.fixture()
@pytest.fixture
def tmp_data_filename(tmp_path):
"""Create a filename for the messages."""
filename = "20191103_153936-s1b-ew-hh.tiff"
return tmp_path / filename


@pytest.fixture()
@pytest.fixture
def config_file(tmp_path):
"""A fixture to create a config file for the tests."""
return create_config_file(tmp_path)
Expand Down

0 comments on commit e04ab7b

Please sign in to comment.