Skip to content

Commit

Permalink
Merge branch 'main' into fix-trollsched-usage-when-not-installed
Browse files Browse the repository at this point in the history
  • Loading branch information
lahtinep committed Nov 18, 2024
2 parents 07023a7 + 88df3d4 commit fbd6a5a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion trollflow2/tests/test_trollflow2.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@
class TestSaveDatasets(TestCase):
"""Test case for saving datasets."""

@pytest.fixture(autouse=True)
def inject_fixtures(self, tmp_path):
"""Inject pytest fixtures."""
self._tmp_path = tmp_path

def test_prepared_filename(self):
"""Test the `prepared_filename` context."""
from trollflow2.plugins import prepared_filename
Expand Down Expand Up @@ -580,6 +585,7 @@ def test_pop_unknown_args(self):
from trollflow2.plugins import save_datasets
job = _create_job_for_save_datasets()

output_dir = self._tmp_path / "örülök, hogy megismerhetem"
product_list = {
"fname_pattern": "name.tif",
"use_tmp_file": True,
Expand All @@ -596,7 +602,7 @@ def test_pop_unknown_args(self):
"PhysicUnit": "no",
"PhysicValue": "yes",
"SatelliteNameID": 0,
"output_dir": "örülök, hogy megismerhetem",
"output_dir": str(output_dir),
"fname_pattern": "viszontlátásra",
"dispatch": {},
"use_tmp_file": False,
Expand Down

0 comments on commit fbd6a5a

Please sign in to comment.