Move CORM settings and histories to dedicated PostgreSQL database

This commit is contained in:
2026-10-22 17:48:50 +09:00
parent 92986eb1cc
commit 399e91518c
20 changed files with 2058 additions and 84 deletions
+7
View File
@@ -165,6 +165,13 @@ class TimeoutTests(unittest.TestCase):
class ApiTests(unittest.IsolatedAsyncioTestCase):
def setUp(self):
# These tests exercise the legacy Google backend regardless of local .env.
backend = patch.object(main, "SETTINGS_BACKEND", "google")
backend.start()
self.addCleanup(backend.stop)
histories = patch.object(main, "HISTORY_BACKEND", "google")
histories.start()
self.addCleanup(histories.stop)
self.directory = tempfile.TemporaryDirectory()
self.cache = runtime.SettingsCache(Path(self.directory.name) / "settings.json", "test")
self.cache_patch = patch.object(main, "_settings_cache", self.cache)