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

Function test_no_conftest

testing/test_conftest.py:355–361  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

353
354
355def test_no_conftest(pytester: Pytester) -> None:
356 pytester.makeconftest("assert 0")
357 result = pytester.runpytest("--noconftest")
358 assert result.ret == ExitCode.NO_TESTS_COLLECTED
359
360 result = pytester.runpytest()
361 assert result.ret == ExitCode.USAGE_ERROR
362
363
364def test_conftest_existing_junitxml(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

makeconftestMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected