MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_earlyinit

Method test_earlyinit

testing/acceptance_test.py:506–514  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

504
505class TestInvocationVariants:
506 def test_earlyinit(self, pytester: Pytester) -> None:
507 p = pytester.makepyfile(
508 """
509 import pytest
510 assert hasattr(pytest, 'mark')
511 """
512 )
513 result = pytester.runpython(p)
514 assert result.ret == 0
515
516 def test_pydoc(self, pytester: Pytester) -> None:
517 result = pytester.runpython_c("import pytest;help(pytest)")

Callers

nothing calls this directly

Calls 2

makepyfileMethod · 0.45
runpythonMethod · 0.45

Tested by

no test coverage detected