Skip to content

"Vibe-Trading: Your Personal Trading Agent"

test(session): preserve native cursor lookup compatibility

Rudy Celekli6d1c056f6c88
diff --git a/agent/tests/test_session_search_concurrent_consumers.py b/agent/tests/test_session_search_concurrent_consumers.py
index 25dbca97f..dcf4fc5b7 100644
--- a/agent/tests/test_session_search_concurrent_consumers.py
+++ b/agent/tests/test_session_search_concurrent_consumers.py
@@ -66,6 +66,9 @@ def test_writer_waits_for_native_search_cursor(tmp_path: Path):
entered, release, writer_entered = Event(), Event(), Event()
class Cursor:
+ def fetchone(self):
+ return self.cursor.fetchone()
+
def fetchall(self):
entered.set()
assert release.wait(3)
@@ -122,6 +125,9 @@ def test_close_waits_for_native_search_cursor(tmp_path: Path):
entered, release, closed = Event(), Event(), Event()
class Cursor:
+ def fetchone(self):
+ return self.cursor.fetchone()
+
def fetchall(self):
entered.set()
assert release.wait(3)