From c1a6dd4fc53c59dec9960eed2db26aa01a8a7ba1 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Tue, 3 Mar 2026 15:03:57 -0800 Subject: [PATCH] fix(avocet): queue_with_items fixture uses api._DATA_DIR to avoid implicit tmp_path coupling --- tests/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index 637a7ca..ac6ecb1 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -27,7 +27,7 @@ def client(): @pytest.fixture -def queue_with_items(tmp_path): +def queue_with_items(): """Write 3 test emails to the queue file.""" from app import api as api_module items = [ @@ -35,7 +35,7 @@ def queue_with_items(tmp_path): "from": "test@example.com", "date": "2026-03-01", "source": "imap:test"} for i in range(3) ] - queue_path = tmp_path / "email_label_queue.jsonl" + queue_path = api_module._DATA_DIR / "email_label_queue.jsonl" queue_path.write_text("\n".join(json.dumps(x) for x in items) + "\n") return items