Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
]
dependencies = [
"aiodocker==0.26.0",
"aiosqlite==0.21.0",
"aiosqlite==0.22.1",
"jinja2==3.1.6",
"jsonschema==4.26.0",
"litellm==1.82.0",
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/persistence/sqlite/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ async def test_health_check_returns_false_on_error(self) -> None:
assert result is False
await backend.disconnect()

@pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning")
async def test_disconnect_cleans_up_on_close_error(self) -> None:
"""If db.close() raises, state is still cleared."""
from unittest.mock import AsyncMock
Expand All @@ -135,6 +136,8 @@ async def test_disconnect_cleans_up_on_close_error(self) -> None:
)
await backend.disconnect()
assert backend.is_connected is False
# Restore original close so __del__ can clean up properly.
backend._db = None

async def test_connect_pragma_failure_cleans_up(self) -> None:
"""If PRAGMA fails after connect, backend cleans up and raises."""
Expand Down
11 changes: 4 additions & 7 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.