Refator eco code. Split into modules
Some checks failed
Test & Deploy / test (push) Has been cancelled
Test & Deploy / deploy (push) Has been cancelled

This commit is contained in:
Rene Arumetsa
2026-07-27 00:49:34 +03:00
parent d89383ee20
commit 83a60cda55
21 changed files with 2413 additions and 2215 deletions

View File

@@ -90,8 +90,9 @@ def _install(monkeypatch, fake: FakePocketBase) -> FakePocketBase:
for name in ("get_record", "create_record", "update_record",
"list_all_records", "count_records", "get_collection_fields"):
monkeypatch.setattr(pb_client, name, getattr(fake, name))
monkeypatch.setattr(economy, "HOUSE_ID", None)
monkeypatch.setattr(economy, "_house_pb_id", None)
# live house state is owned by economy.house (the package re-export is a snapshot)
monkeypatch.setattr(economy.house, "HOUSE_ID", None)
monkeypatch.setattr(economy.house, "_house_pb_id", None)
economy._user_locks.clear()
return fake