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.
This commit is contained in:
tduhamel42
2025-10-29 14:50:05 +01:00
parent 52f168e2c2
commit e0948533c0

View File

@@ -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