Пример #1
0
 def test_pydoc(self, pytester: Pytester) -> None:
     for name in ("py.test", "pytest"):
         result = pytester.runpython_c(f"import {name};help({name})")
         assert result.ret == 0
         s = result.stdout.str()
         assert "MarkGenerator" in s
Пример #2
0
 def test_pydoc(self, pytester: Pytester) -> None:
     result = pytester.runpython_c("import pytest;help(pytest)")
     assert result.ret == 0
     s = result.stdout.str()
     assert "MarkGenerator" in s