Skip to content

Commit a588260

Browse files
committed
Avoid order dependent assertion
The regions are a set which can have different ordering
1 parent 18c6be4 commit a588260

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

graphdatascience/tests/unit/test_gds_sessions.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,7 @@ def test_create_session_invalid_region(aura_api: AuraApi) -> None:
406406
sessions = GdsSessions(AuraAPICredentials("", "", "placeholder"))
407407
sessions._aura_api = aura_api
408408

409-
expected_message = (
410-
"Region `only-db-region` is not supported by the tenant `tenant_id`."
411-
" Supported regions: {'leipzig-1', 'dresden-2'}."
412-
)
409+
expected_message = "Region `only-db-region` is not supported by the tenant `tenant_id`." " Supported regions:"
413410
with pytest.raises(ValueError, match=expected_message):
414411
sessions.get_or_create(
415412
"my-session",

0 commit comments

Comments
 (0)