Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ def isolated_drive_usage_cache(tmp_path, monkeypatch):
monkeypatch.setattr('core.drive_usage.cache_path', lambda: tmp_path / 'drive_usage_cache.json')


@pytest.fixture(autouse=True)
def isolated_capacity_workers(monkeypatch, collect_gui_cycles):
"""No queued capacity read or helper survives into the next test.

Keep each test's mocks installed while draining its workers; the GUI
collector must also remain active until those workers have finished.
"""
yield
shutdown_capacity_executor()


@pytest.fixture(autouse=True)
def synchronous_navigation(monkeypatch):
"""Legacy tests expect navigate_to() to take effect at once; tests/test_drive_switch.py covers the async path."""
Expand Down
Loading