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

Method test_nofailures

testing/test_looponfail.py:115–120  ·  view source on GitHub ↗
(self, pytester: pytest.Pytester)

Source from the content-addressed store, hash-verified

113
114class TestRemoteControl:
115 def test_nofailures(self, pytester: pytest.Pytester) -> None:
116 item = pytester.getitem("def test_func(): pass\n")
117 control = RemoteControl(item.config)
118 control.setup()
119 topdir, failures = control.runsession()[:2]
120 assert not failures
121
122 def test_failures_somewhere(self, pytester: pytest.Pytester) -> None:
123 item = pytester.getitem("def test_func():\n assert 0\n")

Callers

nothing calls this directly

Calls 3

setupMethod · 0.95
runsessionMethod · 0.95
RemoteControlClass · 0.90

Tested by

no test coverage detected