(self, parser: parseopt.Parser)
| 127 | assert getattr(args, parseopt.FILE_OR_DIR)[0] == "." |
| 128 | |
| 129 | def test_parse_known_args(self, parser: parseopt.Parser) -> None: |
| 130 | parser.parse_known_args([Path(".")]) |
| 131 | parser.addoption("--hello", action="store_true") |
| 132 | ns = parser.parse_known_args(["x", "--y", "--hello", "this"]) |
| 133 | assert ns.hello |
| 134 | assert ns.file_or_dir == ["x"] |
| 135 | |
| 136 | def test_parse_known_and_unknown_args(self, parser: parseopt.Parser) -> None: |
| 137 | parser.addoption("--hello", action="store_true") |
nothing calls this directly
no test coverage detected