mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-11-01 11:21:31 +00:00
15 lines
426 B
Python
15 lines
426 B
Python
from collections.abc import Iterator
|
|
|
|
import pytest
|
|
|
|
from proprietary.reddit import fetch
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def fresh_closed_latch(monkeypatch: pytest.MonkeyPatch) -> Iterator[None]:
|
|
"""The closed-endpoint latch is process-wide; give each test its own."""
|
|
monkeypatch.setattr(fetch, "_closed", fetch._ClosedLatch())
|
|
yield
|
|
|
|
|
|
from proprietary.reddit.tests.on_the_host import reddit # noqa: E402, F401
|