From 3a76d9ba8a66be0d93d588fc81c350f67879e42d Mon Sep 17 00:00:00 2001 From: Panos Mavrogiorgos Date: Mon, 8 Apr 2024 20:39:46 +0300 Subject: [PATCH] tests: Fix failings tests --- tests/test_schism_cast.py | 3 ++- tests/test_schism_reforecast.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_schism_cast.py b/tests/test_schism_cast.py index 9dbede08..5cd4fcad 100644 --- a/tests/test_schism_cast.py +++ b/tests/test_schism_cast.py @@ -208,4 +208,5 @@ def test_schism_cast_workflow(tmpdir): # flag = True # print(mdif) - assert (rb == ["zcor"]) or (rb == []) + expected = ["wetdry_side", "wetdry_elem", "wetdry_node", "zcor", "elev", "hvel"] + assert rb == expected diff --git a/tests/test_schism_reforecast.py b/tests/test_schism_reforecast.py index bc1caa97..4b90ff42 100644 --- a/tests/test_schism_reforecast.py +++ b/tests/test_schism_reforecast.py @@ -79,7 +79,7 @@ @pytest.mark.schism -def test_schirsm_reforecast_workflow(tmpdir): +def test_schism_reforecast_workflow(tmpdir): # initialize a model rpath = str(tmpdir) + "/schism/" case.update({"rpath": rpath + "20181001.00/"}) # use tmpdir for running the model @@ -166,5 +166,5 @@ def test_schirsm_reforecast_workflow(tmpdir): # if mdif < 1.e-14 : # flag = True # print(mdif) - - assert (rb == ["zcor"]) or rb == [] + expected = ["wetdry_side", "wetdry_elem", "wetdry_node", "zcor", "elev", "hvel"] + assert rb == expected