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

Method test_header_trailer_info

testing/test_terminal.py:789–816  ·  view source on GitHub ↗
(
        self, monkeypatch: MonkeyPatch, pytester: Pytester, request
    )

Source from the content-addressed store, hash-verified

787 assert result.ret == 0
788
789 def test_header_trailer_info(
790 self, monkeypatch: MonkeyPatch, pytester: Pytester, request
791 ) -> None:
792 monkeypatch.delenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD")
793 pytester.makepyfile(
794 """
795 def test_passes():
796 pass
797 """
798 )
799 result = pytester.runpytest()
800 verinfo = ".".join(map(str, sys.version_info[:3]))
801 result.stdout.fnmatch_lines(
802 [
803 "*===== test session starts ====*",
804 "platform %s -- Python %s*pytest-%s**pluggy-%s"
805 % (
806 sys.platform,
807 verinfo,
808 pytest.__version__,
809 pluggy.__version__,
810 ),
811 "*test_header_trailer_info.py .*",
812 "=* 1 passed*in *.[0-9][0-9]s *=",
813 ]
814 )
815 if request.config.pluginmanager.list_plugin_distinfo():
816 result.stdout.fnmatch_lines(["plugins: *"])
817
818 def test_no_header_trailer_info(
819 self, monkeypatch: MonkeyPatch, pytester: Pytester, request

Callers

nothing calls this directly

Calls 4

delenvMethod · 0.80
fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected