Skip to content

Commit 136e7ff

Browse files
committed
Fix test
1 parent 22b7847 commit 136e7ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/sdk/test_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,15 +1963,15 @@ async def test_get_flat_value(
19631963
assert await tag.get_flat_value(key="primary_tag__display_label") == "red"
19641964
assert await tag.get_flat_value(key="primary_tag.display_label", separator=".") == "red"
19651965

1966-
with pytest.raises(ValueError, match="Unable to lookup flat value for relationship of cardinality"):
1966+
with pytest.raises(ValueError, match="Can only look up flat value for relationships of cardinality one"):
19671967
assert await tag.get_flat_value(key="tags__display_label") == "red"
19681968
else:
19691969
tag = InfrahubNodeSync(client=clients.sync, schema=location_schema, data=location_data01)
19701970
assert tag.get_flat_value(key="name__value") == "DFW"
19711971
assert tag.get_flat_value(key="primary_tag__display_label") == "red"
19721972
assert tag.get_flat_value(key="primary_tag.display_label", separator=".") == "red"
19731973

1974-
with pytest.raises(ValueError, match="Unable to lookup flat value for relationship of cardinality"):
1974+
with pytest.raises(ValueError, match="Can only look up flat value for relationships of cardinality one"):
19751975
assert tag.get_flat_value(key="tags__display_label") == "red"
19761976

19771977

0 commit comments

Comments
 (0)