From e300c29357bf74a965ed9eb91ba9d302368c3b9f Mon Sep 17 00:00:00 2001 From: mferrera Date: Fri, 27 Sep 2024 11:40:40 +0200 Subject: [PATCH] TST: Suppress Pydantic serializer warning This test issues serialization warnings because we are serializing `InternalUnsetData` through `AnyData` which does not expect to do so. It is a valid warning, but will persist until creating `content="unset"` metadata is fully removed. --- tests/test_units/test_dataio.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_units/test_dataio.py b/tests/test_units/test_dataio.py index d35a3de82..ff2c17872 100644 --- a/tests/test_units/test_dataio.py +++ b/tests/test_units/test_dataio.py @@ -419,6 +419,7 @@ def test_unit_is_none(globalconfig1, regsurf): assert meta["data"]["unit"] == "" +@pytest.mark.filterwarnings("ignore:Pydantic serializer warnings") def test_content_not_given(globalconfig1, regsurf): """When content is not explicitly given, warning shall be issued.""" eobj = ExportData(config=globalconfig1)