(self, parser: parseopt.Parser)
| 103 | assert str({"--option1"}) in str(err.value) |
| 104 | |
| 105 | def test_group_shortopt_lowercase(self, parser: parseopt.Parser) -> None: |
| 106 | group = parser.getgroup("hello") |
| 107 | with pytest.raises(ValueError): |
| 108 | group.addoption("-x", action="store_true") |
| 109 | assert len(group.options) == 0 |
| 110 | group._addoption("-x", action="store_true") |
| 111 | assert len(group.options) == 1 |
| 112 | |
| 113 | def test_parser_addoption(self, parser: parseopt.Parser) -> None: |
| 114 | group = parser.getgroup("custom options") |
nothing calls this directly
no test coverage detected