mirror of
https://github.com/FuzzingLabs/fuzzforge_ai.git
synced 2026-02-12 19:12:49 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user