MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / DummyQuery

Class DummyQuery

tests/test_registration_new_api.py:130–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 call_index = {"query": 0}
129
130 class DummyQuery:
131 def __init__(self, rows=None, scalar_value=None):
132 self._rows = rows or []
133 self._scalar_value = scalar_value
134
135 def group_by(self, *_args):
136 return self
137
138 def filter(self, *_args):
139 return self
140
141 def all(self):
142 return self._rows
143
144 def scalar(self):
145 return self._scalar_value
146
147 class DummyDb:
148 def __enter__(self):

Callers 1

queryMethod · 0.70

Calls

no outgoing calls

Tested by 1

queryMethod · 0.56