Beispiel #1
0
 def test_parse_known_args(self, parser: parseopt.Parser) -> None:
     parser.parse_known_args([py.path.local()])
     parser.addoption("--hello", action="store_true")
     ns = parser.parse_known_args(["x", "--y", "--hello", "this"])
     assert ns.hello
     assert ns.file_or_dir == ["x"]