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 -6
View File
@@ -20,9 +20,9 @@ async def test_draining_keeps_liveness_but_rejects_new_work(make_settings):
app.state.lifecycle.start_draining()
try:
async with make_client(app) as client:
assert (await client.get('/health/live')).status_code == 200
assert (await client.get('/health/ready')).status_code == 503
assert (await client.get('/api/v1/users/me')).status_code == 503
assert (await client.get("/health/live")).status_code == 200
assert (await client.get("/health/ready")).status_code == 503
assert (await client.get("/api/v1/users/me")).status_code == 503
finally:
await close_app(app)
@@ -36,13 +36,13 @@ async def test_readiness_timeout_cancels_dependency_checks(make_settings, monkey
finally:
cancelled.append(True)
monkeypatch.setattr(health, 'check_database', stalled)
monkeypatch.setattr(health, 'check_redis', stalled)
monkeypatch.setattr(health, "check_database", stalled)
monkeypatch.setattr(health, "check_redis", stalled)
app = create_app(make_settings(readiness_timeout_seconds=0.03))
try:
async with make_client(app) as client:
started = time.monotonic()
response = await client.get('/health/ready')
response = await client.get("/health/ready")
assert response.status_code == 503
assert time.monotonic() - started < 1
assert len(cancelled) == 2