MCPcopy
hub / github.com/encode/uvicorn / touch_soon

Function touch_soon

tests/supervisors/test_reload.py:40–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39@pytest.fixture
40def touch_soon() -> Generator[Callable[[Path], None]]:
41 threads: list[Thread] = []
42
43 def start(*paths: Path) -> None:
44 thread = Thread(target=sleep_touch, args=paths)
45 thread.start()
46 threads.append(thread)
47
48 yield start
49
50 for t in threads:
51 t.join()
52
53
54class TestBaseReload:

Callers 1

_reload_testerMethod · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected