(pytester: Pytester)
| 1460 | |
| 1461 | |
| 1462 | def test_terminalreporter_reportopt_addopts(pytester: Pytester) -> None: |
| 1463 | pytester.makeini("[pytest]\naddopts=-rs") |
| 1464 | pytester.makepyfile( |
| 1465 | """ |
| 1466 | import pytest |
| 1467 | |
| 1468 | @pytest.fixture |
| 1469 | def tr(request): |
| 1470 | tr = request.config.pluginmanager.getplugin("terminalreporter") |
| 1471 | return tr |
| 1472 | def test_opt(tr): |
| 1473 | assert tr.hasopt('skipped') |
| 1474 | assert not tr.hasopt('qwe') |
| 1475 | """ |
| 1476 | ) |
| 1477 | result = pytester.runpytest() |
| 1478 | result.stdout.fnmatch_lines(["*1 passed*"]) |
| 1479 | |
| 1480 | |
| 1481 | def test_tbstyle_short(pytester: Pytester) -> None: |
nothing calls this directly
no test coverage detected