()
| 398 | |
| 399 | |
| 400 | def test_make_parser(): |
| 401 | parser = argparse.ArgumentParser() |
| 402 | opts = TTypes() |
| 403 | opts.make_parser(parser, "str", short="a") |
| 404 | opts.make_parser(parser, "bool", short="b") |
| 405 | opts.make_parser(parser, "int", short="c") |
| 406 | opts.make_parser(parser, "seqstr", short="d") |
| 407 | opts.make_parser(parser, "bool_on", short="e") |
| 408 | |
| 409 | with pytest.raises(ValueError): |
| 410 | opts.make_parser(parser, "unknown") |
| 411 | |
| 412 | # Nonexistent options ignore |
| 413 | opts.make_parser(parser, "nonexistentxxx") |
| 414 | |
| 415 | |
| 416 | def test_set(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…