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

Method test_show_fixtures

testing/python/fixtures.py:3345–3354  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

3343 assert config.option.showfixtures
3344
3345 def test_show_fixtures(self, pytester: Pytester) -> None:
3346 result = pytester.runpytest("--fixtures")
3347 result.stdout.fnmatch_lines(
3348 [
3349 "tmp_path_factory [[]session scope[]] -- .../_pytest/tmpdir.py:*",
3350 "*for the test session*",
3351 "tmp_path -- .../_pytest/tmpdir.py:*",
3352 "*temporary directory*",
3353 ]
3354 )
3355
3356 def test_show_fixtures_verbose(self, pytester: Pytester) -> None:
3357 result = pytester.runpytest("--fixtures", "-v")

Callers

nothing calls this directly

Calls 2

fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected