From 48291bd2395067317c75545b71845c4e960fd42a Mon Sep 17 00:00:00 2001 From: Anne Schuth Date: Sun, 13 Oct 2024 16:57:38 +0200 Subject: [PATCH] Increase test coverage --- tests/models/test_model_project.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/models/test_model_project.py b/tests/models/test_model_project.py index 869124ad..ecad8621 100644 --- a/tests/models/test_model_project.py +++ b/tests/models/test_model_project.py @@ -66,6 +66,7 @@ def test_model_systemcard_equal(): # then assert project.system_card != system_card + assert project.system_card != {} def test_model_systemcard_from_json(): @@ -77,3 +78,14 @@ def test_model_systemcard_from_json(): # then assert project.system_card == SystemCard(name="Test System Card") + + +def test_model_systemcard_none(): + # given + project = Project(name="Test Project") + + # when + project.system_card = None + + # then + assert project.system_card == SystemCard()