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
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