From 2ce6721c354ad7ddccf66e40db05a6eeef2fa439 Mon Sep 17 00:00:00 2001 From: gahusb Date: Sat, 23 May 2026 02:08:01 +0900 Subject: [PATCH] =?UTF-8?q?fix(tests):=20fresh=5Fdb=20fixture=EA=B0=80=20?= =?UTF-8?q?=EB=A7=A4=20test=EB=A7=88=EB=8B=A4=20db.DB=5FPATH=20=EC=9E=AC?= =?UTF-8?q?=ED=8C=A8=EC=B9=98=20(cross-file=20isolation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- agent-office/tests/test_lotto_task_wrap.py | 2 ++ agent-office/tests/test_sync_evolver_activity.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/agent-office/tests/test_lotto_task_wrap.py b/agent-office/tests/test_lotto_task_wrap.py index 5cf72dc..965b21f 100644 --- a/agent-office/tests/test_lotto_task_wrap.py +++ b/agent-office/tests/test_lotto_task_wrap.py @@ -18,6 +18,8 @@ db.DB_PATH = _TMP @pytest.fixture(autouse=True) def fresh_db(): + # Re-patch DB_PATH at the start of every test (cross-file isolation) + db.DB_PATH = _TMP gc.collect() if os.path.exists(_TMP): os.remove(_TMP) diff --git a/agent-office/tests/test_sync_evolver_activity.py b/agent-office/tests/test_sync_evolver_activity.py index 88b39ad..8ce1826 100644 --- a/agent-office/tests/test_sync_evolver_activity.py +++ b/agent-office/tests/test_sync_evolver_activity.py @@ -19,6 +19,8 @@ db.DB_PATH = _TMP @pytest.fixture(autouse=True) def fresh_db(): + # Re-patch DB_PATH at the start of every test (cross-file isolation) + db.DB_PATH = _TMP gc.collect() if os.path.exists(_TMP): os.remove(_TMP)