From 395df001a0021d04de2b67eafdc31641318d5af4 Mon Sep 17 00:00:00 2001 From: Ahmad Nawab Date: Fri, 28 Jul 2023 14:58:11 +0200 Subject: [PATCH] Fixed pytest mark.skipif conditions --- transformations/tests/test_ecwam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transformations/tests/test_ecwam.py b/transformations/tests/test_ecwam.py index e16d80805..27f22a180 100644 --- a/transformations/tests/test_ecwam.py +++ b/transformations/tests/test_ecwam.py @@ -15,7 +15,6 @@ from loki import execute, HAVE_FP, FP pytestmark = pytest.mark.skipif('ECWAM_DIR' not in os.environ, reason='ECWAM_DIR not set') -pytestmark = pytest.mark.skipif(not HAVE_FP, reason='ecWam only compatible with Fparser') @pytest.fixture(scope='module', name='here') def fixture_here(): @@ -45,6 +44,7 @@ def fixture_write_script(): @pytest.mark.usefixtures('bundle_create') +@pytest.mark.skipif(not HAVE_FP, reason="FP needed for ECWAM parsing") def test_ecwam(here, write_script, frontend=FP): build_cmd = [ './ecwam-bundle', 'build', '--clean',