Test that 's' and 'S' report chars are aliases and don't show up twice in the summary
(self, pytester: Pytester)
| 1064 | assert result.stdout.lines.count(expected) == 1 |
| 1065 | |
| 1066 | def test_summary_s_alias(self, pytester: Pytester) -> None: |
| 1067 | """Test that 's' and 'S' report chars are aliases and don't show up twice in the summary""" |
| 1068 | pytester.makepyfile( |
| 1069 | """ |
| 1070 | import pytest |
| 1071 | |
| 1072 | @pytest.mark.skip |
| 1073 | def test(): |
| 1074 | pass |
| 1075 | """ |
| 1076 | ) |
| 1077 | result = pytester.runpytest("-rsS") |
| 1078 | expected = "SKIPPED [1] test_summary_s_alias.py:3: unconditional skip" |
| 1079 | result.stdout.fnmatch_lines([expected]) |
| 1080 | assert result.stdout.lines.count(expected) == 1 |
| 1081 | |
| 1082 | |
| 1083 | def test_fail_extra_reporting(pytester: Pytester, monkeypatch) -> None: |
nothing calls this directly
no test coverage detected