(self, pytester: Pytester)
| 560 | pytest.raises(ValueError, config.getoption, "qweqwe") |
| 561 | |
| 562 | def test_config_getoption_unicode(self, pytester: Pytester) -> None: |
| 563 | pytester.makeconftest( |
| 564 | """ |
| 565 | def pytest_addoption(parser): |
| 566 | parser.addoption('--hello', type=str) |
| 567 | """ |
| 568 | ) |
| 569 | config = pytester.parseconfig("--hello=this") |
| 570 | assert config.getoption("hello") == "this" |
| 571 | |
| 572 | def test_config_getvalueorskip(self, pytester: Pytester) -> None: |
| 573 | config = pytester.parseconfig() |
nothing calls this directly
no test coverage detected