Skip to content

Commit 412fd5b

Browse files
committed
set comparison on conformance tests to ignore order
1 parent 12644af commit 412fd5b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

stapi-fastapi/tests/test_conformance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_conformance(stapi_client: TestClient) -> None:
1111

1212
body = res.json()
1313

14-
assert body["conformsTo"] == [API.core, API.order_statuses]
14+
assert set(body["conformsTo"]) == {API.core, API.order_statuses}
1515

1616

1717
def test_all() -> None:

stapi-fastapi/tests/test_root.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_root(stapi_client: TestClient, assert_link) -> None:
1111

1212
body = res.json()
1313

14-
assert body["conformsTo"] == [API.core, API.order_statuses]
14+
assert set(body["conformsTo"]) == {API.core, API.order_statuses}
1515

1616
assert_link("GET /", body, "self", "/")
1717
assert_link("GET /", body, "service-description", "/openapi.json")

0 commit comments

Comments
 (0)