(self, parser: parseopt.Parser)
| 143 | assert unknown == ["--y", "this"] |
| 144 | |
| 145 | def test_parse_will_set_default(self, parser: parseopt.Parser) -> None: |
| 146 | parser.addoption("--hello", dest="hello", default="x", action="store") |
| 147 | option = parser.parse([]) |
| 148 | assert option.hello == "x" |
| 149 | del option.hello |
| 150 | parser.parse_setoption([], option) |
| 151 | assert option.hello == "x" |
| 152 | |
| 153 | def test_parse_setoption(self, parser: parseopt.Parser) -> None: |
| 154 | parser.addoption("--hello", dest="hello", action="store") |
nothing calls this directly
no test coverage detected