fix: align tests with model validation and API error reporting

This commit is contained in:
2026-04-13 01:43:52 -04:00
parent 89abb6ecc6
commit f2cc585d72
22 changed files with 494 additions and 1698 deletions

View File

@@ -355,7 +355,7 @@ class SQLiteRepository(BaseRepository):
async with self.session_factory() as session:
statement = select(State).where(State.key == key)
result = await session.execute(statement)
state = result.scalar_one_none()
state = result.scalar_one_or_none()
if state:
return json.loads(state.value)
return None
@@ -365,7 +365,7 @@ class SQLiteRepository(BaseRepository):
# Check if exists
statement = select(State).where(State.key == key)
result = await session.execute(statement)
state = result.scalar_one_none()
state = result.scalar_one_or_none()
value_json = json.dumps(value)
if state: