mirror of
https://github.com/simonw/datasette.git
synced 2026-09-29 05:14:21 +02:00
Apply ruff 0.16 and black fixes
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012U7coQfVu8nK2R4q2mCULA
This commit is contained in:
parent
442662c55f
commit
52e410cd63
3 changed files with 18 additions and 22 deletions
|
|
@ -147,9 +147,7 @@ async def test_launch_waits_for_every_startup_hook_before_running_any_task():
|
|||
assert hook_call_order == ["A", "B"]
|
||||
|
||||
handles = ds._background_tasks.tasks()
|
||||
await asyncio.wait_for(
|
||||
asyncio.gather(*[h.task for h in handles]), timeout=5
|
||||
)
|
||||
await asyncio.wait_for(asyncio.gather(*[h.task for h in handles]), timeout=5)
|
||||
# Yet by the time task-a's own body executed (after launch, which
|
||||
# only happens once every startup hook - including B's - has
|
||||
# finished), task-b was already registered.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue