Skip to content

Commit

Permalink
Fix forcing test path
Browse files Browse the repository at this point in the history
  • Loading branch information
BSchilperoort committed Dec 8, 2023
1 parent a10e1aa commit a1f338d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_forcing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a1f338d

Please sign in to comment.