formatted project by python-black

This commit is contained in:
2026-11-10 09:52:42 +03:00
parent 7cd02da51d
commit 9899ee4676
66 changed files with 2517 additions and 944 deletions
+6 -2
View File
@@ -92,7 +92,9 @@ async def test_instance_header_is_present_on_success_and_errors(
assert response.headers["X-Instance-Id"] == "api-test"
assert response.headers["X-Request-Id"]
if status >= 400:
assert response.json()["error"]["request_id"] == response.headers["X-Request-Id"]
assert (
response.json()["error"]["request_id"] == response.headers["X-Request-Id"]
)
async def test_instance_id_is_stable_while_request_ids_are_distinct(instance_client):
@@ -100,7 +102,9 @@ async def test_instance_id_is_stable_while_request_ids_are_distinct(instance_cli
second = await instance_client.get("/__test__/request-id")
assert first.status_code == second.status_code == 200
assert first.headers["X-Instance-Id"] == second.headers["X-Instance-Id"] == "api-test"
assert (
first.headers["X-Instance-Id"] == second.headers["X-Instance-Id"] == "api-test"
)
assert first.headers["X-Request-Id"] != second.headers["X-Request-Id"]
for response in (first, second):
assert response.json()["request_id"] == response.headers["X-Request-Id"]