From e0948533c053b48b8244ee3faa4745e941bdaaf9 Mon Sep 17 00:00:00 2001 From: tduhamel42 Date: Wed, 29 Oct 2025 14:50:05 +0100 Subject: [PATCH] fix(test): Provide dummy compose file to WorkerManager in tests The WorkerManager tries to auto-detect docker-compose.yml during __init__, which fails in CI when tests run from cli/ directory. Updated the worker_manager fixture to provide a dummy compose file path, allowing tests to focus on platform detection logic without needing the actual compose file. --- cli/tests/test_platform_detection.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cli/tests/test_platform_detection.py b/cli/tests/test_platform_detection.py index 5bf0a5b..df28b56 100644 --- a/cli/tests/test_platform_detection.py +++ b/cli/tests/test_platform_detection.py @@ -15,9 +15,12 @@ from fuzzforge_cli.worker_manager import WorkerManager @pytest.fixture -def worker_manager(): +def worker_manager(tmp_path): """Create a WorkerManager instance for testing.""" - return WorkerManager() + # Create a dummy docker-compose.yml for testing + dummy_compose = tmp_path / "docker-compose.yml" + dummy_compose.write_text("version: '3.8'\nservices: {}") + return WorkerManager(compose_file=dummy_compose) @pytest.fixture