From 51fd739f635522a519dbea3d35685a500ea847cf Mon Sep 17 00:00:00 2001 From: CleverThis Date: Sun, 14 Jun 2026 05:08:06 -0400 Subject: [PATCH] fix(tests): remove unused mock_tmp variable and apply ruff formatting --- features/steps/cleanup_service_uncovered_lines_steps.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/features/steps/cleanup_service_uncovered_lines_steps.py b/features/steps/cleanup_service_uncovered_lines_steps.py index e21982f8b..e919c803a 100644 --- a/features/steps/cleanup_service_uncovered_lines_steps.py +++ b/features/steps/cleanup_service_uncovered_lines_steps.py @@ -438,7 +438,7 @@ def step_cleanup_cov_purge_sandboxes_cache_tracking(context: Context) -> None: # Create temporary stub directories that look like sandbox dirs tmp_dir = tempfile.mkdtemp() - sandbox_names = [f"ca-sandbox-plan{ i}-stub{i}" for i in range(2)] + sandbox_names = [f"ca-sandbox-plan{i}-stub{i}" for i in range(2)] sandbox_paths = [] for name in sandbox_names: p = Path(tmp_dir) / name @@ -483,9 +483,7 @@ def step_cleanup_cov_purge_empty_cache(context: Context) -> None: tempfile.gettempdir = fake_gettempdir # Patch Path.exists to return False so we hit the early-return path but # still want to verify cache is set to None - with patch( - "cleveragents.application.services.cleanup_service.tempfile" - ) as mock_tmp: + with patch("cleveragents.application.services.cleanup_service.tempfile"): # tempfile module was already imported in cleanup_service.py, # but we patched gettempdir directly above