(pytester: Pytester)
| 868 | |
| 869 | |
| 870 | def test_collection_live_logging(pytester: Pytester) -> None: |
| 871 | pytester.makepyfile( |
| 872 | """ |
| 873 | import logging |
| 874 | |
| 875 | logging.getLogger().info("Normal message") |
| 876 | """ |
| 877 | ) |
| 878 | |
| 879 | result = pytester.runpytest("--log-cli-level=INFO") |
| 880 | result.stdout.fnmatch_lines( |
| 881 | ["*--- live log collection ---*", "*Normal message*", "collected 0 items"] |
| 882 | ) |
| 883 | |
| 884 | |
| 885 | @pytest.mark.parametrize("verbose", ["", "-q", "-qq"]) |
nothing calls this directly
no test coverage detected