Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
anneschuth committed Oct 13, 2024
1 parent bb2e7b8 commit 48291bd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/models/test_model_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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()

0 comments on commit 48291bd

Please sign in to comment.