From 411bf1bbb176003508d8b2afcdb54c7fdad321c0 Mon Sep 17 00:00:00 2001 From: Alvaro Valdebenito Date: Mon, 29 Jan 2024 15:53:53 +0100 Subject: [PATCH 1/2] pytest 7.4 DeprecationWarning --- tests/plugins/gaw/test_dms.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/plugins/gaw/test_dms.py b/tests/plugins/gaw/test_dms.py index 92cf7ae56..8c1a62f39 100644 --- a/tests/plugins/gaw/test_dms.py +++ b/tests/plugins/gaw/test_dms.py @@ -12,7 +12,6 @@ def _make_data(): @pytest.fixture(scope="module") -@lustre_unavail def data_vmrdms_ams_cvo(): return _make_data() From f622f8a267fe714a51647715360fe81c8f1d2f0f Mon Sep 17 00:00:00 2001 From: Alvaro Valdebenito Date: Mon, 29 Jan 2024 16:00:02 +0100 Subject: [PATCH 2/2] return instead of assert in test function --- tests/plugins/icos/test_reader.py | 2 +- tests/plugins/ipcforests/test_reader.py | 2 +- tests/plugins/mep/test_reader.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/plugins/icos/test_reader.py b/tests/plugins/icos/test_reader.py index 438eed239..a129184d4 100644 --- a/tests/plugins/icos/test_reader.py +++ b/tests/plugins/icos/test_reader.py @@ -63,7 +63,7 @@ def test_stations(reader: ReadICOS, station: str): def test_PROVIDES_VARIABLES(reader: ReadICOS): - return set(reader.PROVIDES_VARIABLES) >= VARS_PROVIDED + assert set(reader.PROVIDES_VARIABLES) >= VARS_PROVIDED @station_names diff --git a/tests/plugins/ipcforests/test_reader.py b/tests/plugins/ipcforests/test_reader.py index 8fb680b8f..00169fe39 100644 --- a/tests/plugins/ipcforests/test_reader.py +++ b/tests/plugins/ipcforests/test_reader.py @@ -51,7 +51,7 @@ def test_METADATA(meta_reader: ReadIPCForestMeta): def test_PROVIDES_VARIABLES(reader: ReadIPCForest): - return set(reader.PROVIDES_VARIABLES) >= VARS_PROVIDED + assert set(reader.PROVIDES_VARIABLES) >= VARS_PROVIDED def test_read_file( diff --git a/tests/plugins/mep/test_reader.py b/tests/plugins/mep/test_reader.py index 149000125..d997e969b 100644 --- a/tests/plugins/mep/test_reader.py +++ b/tests/plugins/mep/test_reader.py @@ -63,7 +63,7 @@ def test_stations(reader: ReadMEP, station: str): @lustre_unavail def test_PROVIDES_VARIABLES(reader: ReadMEP): - return set(reader.PROVIDES_VARIABLES) >= VARS_PROVIDED + assert set(reader.PROVIDES_VARIABLES) >= VARS_PROVIDED @lustre_unavail