Move CORM settings and histories to dedicated PostgreSQL database
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user