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

Method query

tests/test_registration_new_api.py:154–160  ·  view source on GitHub ↗
(self, *_entities)

Source from the content-addressed store, hash-verified

152 return False
153
154 def query(self, *_entities):
155 call_index["query"] += 1
156 if call_index["query"] == 1:
157 return DummyQuery(rows=[("completed", 12), ("failed", 3), ("running", 2)])
158 if call_index["query"] == 2:
159 return DummyQuery(rows=[("completed", 39), ("failed", 14), ("running", 8)])
160 return DummyQuery(scalar_value=61)
161
162 monkeypatch.setattr(registration, "get_db", lambda: DummyDb())
163 monkeypatch.setattr(registration, "utcnow_naive", lambda: datetime(2026, 4, 2, 12, 0, 0))

Callers 15

get_account_by_idFunction · 0.45
get_account_by_emailFunction · 0.45
get_accountsFunction · 0.45
_detach_bind_card_tasksFunction · 0.45
get_accounts_countFunction · 0.45
get_email_service_by_idFunction · 0.45
get_email_servicesFunction · 0.45
get_registration_tasksFunction · 0.45
get_settingFunction · 0.45
get_settings_by_categoryFunction · 0.45

Calls 1

DummyQueryClass · 0.70

Tested by

no test coverage detected