File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments