(self, pytester: Pytester, mock_timing)
| 860 | """ |
| 861 | |
| 862 | def test_calls(self, pytester: Pytester, mock_timing) -> None: |
| 863 | pytester.makepyfile(self.source) |
| 864 | result = pytester.runpytest_inprocess("--durations=10") |
| 865 | assert result.ret == 0 |
| 866 | |
| 867 | result.stdout.fnmatch_lines_random( |
| 868 | ["*durations*", "*call*test_3*", "*call*test_2*"] |
| 869 | ) |
| 870 | |
| 871 | result.stdout.fnmatch_lines( |
| 872 | ["(8 durations < 0.005s hidden. Use -vv to show these durations.)"] |
| 873 | ) |
| 874 | |
| 875 | def test_calls_show_2(self, pytester: Pytester, mock_timing) -> None: |
| 876 |
nothing calls this directly
no test coverage detected