MCPcopy
hub / github.com/tortoise/tortoise-orm / fake_applied

Function fake_applied

tests/cli/test_cli.py:334–338  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

332 return None
333
334 async def fake_applied(self) -> list[MigrationKey]:
335 return [
336 MigrationKey(app_label="app", name="0001_initial"),
337 MigrationKey(app_label="other", name="0001_initial"),
338 ]
339
340 monkeypatch.setattr(cli_module.Tortoise, "init", fake_init)
341 monkeypatch.setattr(cli_module.MigrationRecorder, "applied_migrations", fake_applied)

Callers

nothing calls this directly

Calls 1

MigrationKeyClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…