mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-06-10 16:24:49 +02:00
Format OpenAPI identity test
This commit is contained in:
@@ -13,11 +13,9 @@ def test_create_identity_schema_matches_supported_identity_types():
|
||||
properties = schema["properties"]
|
||||
|
||||
assert properties["type"]["enum"] == ["companion", "room_server"]
|
||||
assert {"node_name", "tcp_port", "bind_address"} <= set(
|
||||
properties["settings"]["properties"]
|
||||
)
|
||||
assert {"node_name", "tcp_port", "bind_address"} <= set(properties["settings"]["properties"])
|
||||
assert set(
|
||||
spec["paths"]["/create_identity"]["post"]["requestBody"]["content"][
|
||||
"application/json"
|
||||
]["examples"]
|
||||
spec["paths"]["/create_identity"]["post"]["requestBody"]["content"]["application/json"][
|
||||
"examples"
|
||||
]
|
||||
) == {"companion", "room_server"}
|
||||
|
||||
Reference in New Issue
Block a user