MCPcopy
hub / github.com/pytest-dev/pytest / test_earlyinit

Method test_earlyinit

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

Source from the content-addressed store, hash-verified

576
577class TestInvocationVariants:
578 def test_earlyinit(self, pytester: Pytester) -> None:
579 p = pytester.makepyfile(
580 """
581 import pytest
582 assert hasattr(pytest, 'mark')
583 """
584 )
585 result = pytester.runpython(p)
586 assert result.ret == 0
587
588 def test_pydoc(self, pytester: Pytester) -> None:
589 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