From a1f338d19c1331a3cd32619d8dc93258ee9928ba Mon Sep 17 00:00:00 2001 From: Bart Schilperoort Date: Wed, 29 Nov 2023 13:35:57 +0100 Subject: [PATCH] Fix forcing test path --- tests/test_forcing.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_forcing.py b/tests/test_forcing.py index 2134db7..4026958 100644 --- a/tests/test_forcing.py +++ b/tests/test_forcing.py @@ -10,6 +10,7 @@ from ewatercycle.base.forcing import FORCING_YAML from ewatercycle_marrmot.forcing import MarrmotForcing, build_marrmot_recipe from ewatercycle.testing.helpers import reyamlify +import ewatercycle_marrmot.forcing_diagnostic_script @pytest.fixture @@ -48,6 +49,7 @@ def forcing(self, mock_recipe_run, sample_shape): @pytest.fixture def reference_recipe(self): + ewatercycle_marrmot.forcing return { "diagnostics": { "diagnostic_daily": { @@ -62,7 +64,7 @@ def reference_recipe(self): ], "description": "marrmot input preprocessor for daily data", "scripts": { - "script": {"basin": "Rhine", "script": "hydrology/marrmot.py"} + "script": {"basin": "Rhine", "script": str(Path(ewatercycle_marrmot.forcing_diagnostic_script.__file__).absolute())} }, "variables": { "pr": { @@ -299,7 +301,7 @@ def test_build_marrmot_recipe(sample_shape: str): diagnostic: scripts: script: - script: hydrology/marrmot.py + script: {Path(ewatercycle_marrmot.forcing_diagnostic_script.__file__).absolute()} basin: Rhine variables: tas: