(pytester: Pytester)
| 1236 | |
| 1237 | |
| 1238 | def test_customized_python_discovery_functions(pytester: Pytester) -> None: |
| 1239 | pytester.makeini( |
| 1240 | """ |
| 1241 | [pytest] |
| 1242 | python_functions=_test |
| 1243 | """ |
| 1244 | ) |
| 1245 | pytester.makepyfile( |
| 1246 | """ |
| 1247 | def _test_underscore(): |
| 1248 | pass |
| 1249 | """ |
| 1250 | ) |
| 1251 | result = pytester.runpytest("--collect-only", "-s") |
| 1252 | result.stdout.fnmatch_lines(["*_test_underscore*"]) |
| 1253 | |
| 1254 | result = pytester.runpytest() |
| 1255 | assert result.ret == 0 |
| 1256 | result.stdout.fnmatch_lines(["*1 passed*"]) |
| 1257 | |
| 1258 | |
| 1259 | def test_unorderable_types(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected