From 1d21115c4e99824b909489fcd877de35d5bb55c9 Mon Sep 17 00:00:00 2001 From: Tom Bland Date: Thu, 27 Mar 2025 15:31:43 +0000 Subject: [PATCH 1/2] Restore regressions test for tutorials --- tests/test_fullsim_regression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_fullsim_regression.py b/tests/test_fullsim_regression.py index 68303c67..9eb64c54 100644 --- a/tests/test_fullsim_regression.py +++ b/tests/test_fullsim_regression.py @@ -36,7 +36,7 @@ def test_fullsim_regression(model, tmpdir, compare_dirs): def available_tutorials(): base_path = Path(__file__).parent.parent / "docs" / "tutorial-code" - return [d.parent for d in base_path.rglob("*/input") if d.is_dir()] + return [p.parent for p in base_path.rglob("settings.toml")] @mark.regression From 1c6235f202251389e3c6f20d23cd764eddeadef8 Mon Sep 17 00:00:00 2001 From: Tom Bland Date: Thu, 27 Mar 2025 15:42:16 +0000 Subject: [PATCH 2/2] Correctly mark test as xfail --- tests/test_fullsim_regression.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_fullsim_regression.py b/tests/test_fullsim_regression.py index 9eb64c54..f698208a 100644 --- a/tests/test_fullsim_regression.py +++ b/tests/test_fullsim_regression.py @@ -1,6 +1,6 @@ from pathlib import Path -from pytest import mark +from pytest import mark, xfail from muse.examples import available_examples @@ -52,9 +52,7 @@ def test_tutorial_regression(tutorial_path, tmpdir, compare_dirs): # Mark as xfail for a specific tutorial if "modify-time-framework" in str(tutorial_path): - mark.xfail(reason="Known issue with this tutorial (#371)")( - test_tutorial_regression - ) + xfail(reason="Known issue with this tutorial (#371)") # fail the test if this warning crops up simplefilter("error", DtypeWarning)