(pytester: Pytester)
| 263 | |
| 264 | |
| 265 | def test_deprecation_of_cmdline_preparse(pytester: Pytester) -> None: |
| 266 | pytester.makeconftest( |
| 267 | """ |
| 268 | def pytest_cmdline_preparse(config, args): |
| 269 | ... |
| 270 | |
| 271 | """ |
| 272 | ) |
| 273 | result = pytester.runpytest() |
| 274 | result.stdout.fnmatch_lines( |
| 275 | [ |
| 276 | "*PytestRemovedIn8Warning: The pytest_cmdline_preparse hook is deprecated*", |
| 277 | "*Please use pytest_load_initial_conftests hook instead.*", |
| 278 | ] |
| 279 | ) |
| 280 | |
| 281 | |
| 282 | def test_node_ctor_fspath_argument_is_deprecated(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected