Skip to content

Commit

Permalink
fix tests to match new shacl interpretation output
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Oct 31, 2024
1 parent d6a2179 commit 0033f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/api/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ def test_validate_model(client, building_motif, shacl_engine):
response = results.get_json()
assert "urn:building/vav1" in response["reasons"], "vav1 should be in the response"
assert set(response["reasons"]["urn:building/vav1"]) == {
"urn:building/vav1 needs at least 1 instances of brick:Air_Flow_Sensor on path brick:hasPoint",
"urn:building/vav1 needs at least 1 instances of brick:Temperature_Sensor on path brick:hasPoint",
"urn:building/vav1 needs at least 1 instances of brick:Air_Flow_Sensor on path brick:hasPoint",
"urn:building/vav1 needs at least 1 instances of brick:Temperature_Sensor on path brick:hasPoint",
}
assert not results.get_json()["valid"]

Expand Down

0 comments on commit 0033f92

Please sign in to comment.