From f631eec82bf58faec5b7a433ae25f870924da129 Mon Sep 17 00:00:00 2001 From: Martijn Visser Date: Thu, 26 Sep 2024 21:59:03 +0200 Subject: [PATCH] Require basic results for delwaq test --- python/ribasim/tests/test_delwaq.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/ribasim/tests/test_delwaq.py b/python/ribasim/tests/test_delwaq.py index bedbcb4e4..d0b35fbbe 100644 --- a/python/ribasim/tests/test_delwaq.py +++ b/python/ribasim/tests/test_delwaq.py @@ -8,7 +8,13 @@ @pytest.mark.skipif( - not bool(os.getenv("D3D_HOME")), reason="Requires Delwaq to be installed." + not ( + ("D3D_HOME" in os.environ) + and ( + delwaq_dir.parents[2] / "generated_testmodels/basic/results/flow.arrow" + ).is_file() + ), + reason="Requires Delwaq to be installed and basic model results.", ) def test_offline_delwaq_coupling(): repo_dir = delwaq_dir.parents[2]