Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/packages/devui/tests/devui/test_cleanup_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""Tests for cleanup hook registration and execution."""

import asyncio
import inspect
import tempfile
from pathlib import Path

Expand Down Expand Up @@ -123,7 +124,7 @@ async def test_register_cleanup_multiple_hooks():

# Execute all hooks
for hook in hooks:
if asyncio.iscoroutinefunction(hook):
if inspect.iscoroutinefunction(hook):
await hook()
else:
hook()
Expand Down