Give each test a clean queue so tasks from one test don't affect another.
(monkeypatch)
| 21 | |
| 22 | @pytest.fixture(autouse=True) |
| 23 | def reset_queue(monkeypatch): |
| 24 | """Give each test a clean queue so tasks from one test don't affect another.""" |
| 25 | fresh = DeduplicatedQueue() |
| 26 | monkeypatch.setattr(subgen, "task_queue", fresh) |
| 27 | yield fresh |
| 28 | |
| 29 | |
| 30 | @pytest.fixture(scope="module") |
nothing calls this directly
no test coverage detected