mirror of
https://github.com/FuzzingLabs/fuzzforge_ai.git
synced 2026-10-12 03:57:09 +02: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:
1 parent
52f168e2c2
commit
e0948533c0
1 file changed
+5
-2
@@ -15,9 +15,12 @@ from fuzzforge_cli.worker_manager import WorkerManager
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def worker_manager():
|
def worker_manager(tmp_path):
|
||||||
"""Create a WorkerManager instance for testing."""
|
"""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
|
@pytest.fixture
|
||||||
|
|||||||
Reference in new issue
Block a user