Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

fix: Pytest tests with SQLite

Clémence Lesnéa08cacd04064
diff --git a/persistence/sqlite.py b/persistence/sqlite.py
index 465c089..322ac0f 100644
--- a/persistence/sqlite.py
+++ b/persistence/sqlite.py
@@ -37,7 +37,10 @@ class SqliteStore(IStore):
self._first_run_done = True
# Init client
- self._client = sqlite_connect(database=db_path)
+ self._client = sqlite_connect(
+ check_same_thread=False, # Allow pytest tests to run
+ database=db_path,
+ )
async def areadiness(self) -> ReadinessStatus:
"""