Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherSpelt committed Oct 16, 2024
1 parent 5d634e6 commit 8f15749
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tests/schema/test_schema_system_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def test_get_system_card(setup: SystemCard) -> None:
"assessments": [],
"requirements": [],
"measures": [],
"references": [],
}

assert system_card.model_dump() == expected
Expand All @@ -40,6 +41,7 @@ def test_system_card_update(setup: SystemCard) -> None:
"assessments": [],
"requirements": [],
"measures": [],
"references": [],
}
system_card.name = "IAMA 1.1"
assert system_card.model_dump(exclude_none=True) == expected
8 changes: 4 additions & 4 deletions tests/services/test_instruments_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def system_card_data_with_instruments() -> dict[str, Any]:
"name": "test-system-card",
"schema_version": "0.0.0",
"instruments": [
{"urn": "urn:nl:aivt:ir:iama:1.0"},
{"urn": "urn:nl:aivt:ir:aiia:1.0"},
{"urn": "urn:nl:aivt:tr:iama:1.0"},
{"urn": "urn:nl:aivt:tr:aiia:1.0"},
{"urn": "urn:instrument:assessment"},
],
"assessments": [
Expand Down Expand Up @@ -175,9 +175,9 @@ def test_get_state_per_instrument(system_card: SystemCard):
instrument_state_service = InstrumentStateService(system_card)
res = instrument_state_service.get_state_per_instrument()
assert res == [
{"urn": "urn:nl:aivt:ir:aiia:1.0", "in_progress": 1, "name": "AI Impact Assessment (AIIA)"},
{"urn": "urn:nl:aivt:tr:aiia:1.0", "in_progress": 1, "name": "AI Impact Assessment (AIIA)"},
{
"urn": "urn:nl:aivt:ir:iama:1.0",
"urn": "urn:nl:aivt:tr:iama:1.0",
"in_progress": 1,
"name": "Impact Assessment Mensenrechten en Algoritmes (IAMA)",
},
Expand Down

0 comments on commit 8f15749

Please sign in to comment.