From 2ddd8a5f3bb8ce8cc24f8e55b0971ccc7ba8130f Mon Sep 17 00:00:00 2001 From: Nora-Olivia-Ammann <103038637+Nora-Olivia-Ammann@users.noreply.github.com> Date: Fri, 15 Nov 2024 12:27:57 +0100 Subject: [PATCH] Update test_namespace_context.py --- .../commands/xmlupload/models/test_namespace_context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unittests/commands/xmlupload/models/test_namespace_context.py b/test/unittests/commands/xmlupload/models/test_namespace_context.py index a1ab14fa9..5e6df9f6b 100644 --- a/test/unittests/commands/xmlupload/models/test_namespace_context.py +++ b/test/unittests/commands/xmlupload/models/test_namespace_context.py @@ -28,7 +28,7 @@ def test_get_json_ld_context_for_project() -> None: "xsd": "http://www.w3.org/2001/XMLSchema#", "testonto": "http://www.knora.org/ontology/testonto#", } - assert context.serialise() == expected + assert context.serialise() == {"@context": expected} def test_get_json_ld_context_for_project_with_multiple_ontologies() -> None: @@ -48,7 +48,7 @@ def test_get_json_ld_context_for_project_with_multiple_ontologies() -> None: "testonto": "http://www.knora.org/ontology/testonto#", "testonto2": "http://www.knora.org/ontology/testonto2#", } - assert context.serialise() == expected + assert context.serialise() == {"@context": expected} if __name__ == "__main__":