(
self, monkeypatch: MonkeyPatch, pytester: Pytester, request
)
| 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 |
nothing calls this directly
no test coverage detected