MCPcopy
hub / github.com/pytest-dev/pytest-xdist / test_waitonchange

Method test_waitonchange

testing/test_looponfail.py:102–111  ·  view source on GitHub ↗
(
        self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
    )

Source from the content-addressed store, hash-verified

100 assert not pycfile.exists()
101
102 def test_waitonchange(
103 self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
104 ) -> None:
105 tmp = tmp_path
106 sd = StatRecorder([tmp])
107
108 ret_values = [True, False]
109 monkeypatch.setattr(StatRecorder, "check", lambda self: ret_values.pop())
110 sd.waitonchange(checkinterval=0.2)
111 assert not ret_values
112
113
114class TestRemoteControl:

Callers

nothing calls this directly

Calls 2

waitonchangeMethod · 0.95
StatRecorderClass · 0.90

Tested by

no test coverage detected