From 1e2ee86bc81d92f0cf7f46ffbfb478d8effc8f87 Mon Sep 17 00:00:00 2001 From: Filip Macek Date: Thu, 25 Apr 2024 15:06:36 +0200 Subject: [PATCH] reset datebase any before tests --- .../infrastructure/test_cache_database_postgres.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration_tests/infrastructure/test_cache_database_postgres.py b/tests/integration_tests/infrastructure/test_cache_database_postgres.py index ee69790d2a7e..759a3de3fa75 100644 --- a/tests/integration_tests/infrastructure/test_cache_database_postgres.py +++ b/tests/integration_tests/infrastructure/test_cache_database_postgres.py @@ -43,6 +43,8 @@ def setup(self): os.environ["POSTGRES_PASSWORD"] = "pass" os.environ["POSTGRES_DATABASE"] = "nautilus" self.database: CachePostgresAdapter = CachePostgresAdapter() + # reset database + self.database.flush() self.clock = TestClock() self.trader_id = TestIdStubs.trader_id()