From c499da7b323ddfcc4d85248a02446d94bd05fca9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Feb 2026 21:09:10 +0000 Subject: [PATCH 1/2] Initial plan From f7f9ad6a74af5c4bb1f7081c309e6c200e99df87 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Feb 2026 21:09:57 +0000 Subject: [PATCH 2/2] Fix SIM108: use ternary operator for cache_dir assignment in conftest.py Co-authored-by: shaypal5 <917954+shaypal5@users.noreply.github.com> --- tests/conftest.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 136f35bc..509f5897 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -150,12 +150,7 @@ def isolated_cache_directory(tmp_path, monkeypatch, request, worker_id): """ if "pickle" in request.node.keywords: # Create a unique cache directory for this test - if worker_id == "master": - # Not running in parallel mode - cache_dir = tmp_path / "cachier_cache" - else: - # Running with pytest-xdist - use worker-specific directory - cache_dir = tmp_path / f"cachier_cache_{worker_id}" + cache_dir = tmp_path / "cachier_cache" if worker_id == "master" else tmp_path / f"cachier_cache_{worker_id}" cache_dir.mkdir(exist_ok=True, parents=True)