Replaced fetch_one with fetch_value for single-column RETURNING queries.
Format / ruff (push) Successful in 10s
Lint / ruff (push) Successful in 10s
Unit Tests / pytest (push) Successful in 18s
Type Check / mypy (push) Successful in 18s

This commit is contained in:
2026-02-16 20:30:26 -05:00
parent 96dfa300e9
commit 1349b75238
2 changed files with 10 additions and 4 deletions
+6
View File
@@ -53,6 +53,12 @@ class MockStorage:
self._conn.commit()
return row
async def fetch_value(self, query, params=None):
row = await self.fetch_one(query, params)
if row is None:
return None
return row[0]
async def process(
template, args=None, user="Alice", use_count=1, storage=None, max_depth=4