()
| 609 | |
| 610 | |
| 611 | def test_parsearg(): |
| 612 | with taddons.context() as tctx: |
| 613 | tctx.master.addons.add(DummyConsole()) |
| 614 | assert command.parsearg(tctx.master.commands, "foo", str) == "foo" |
| 615 | with pytest.raises(exceptions.CommandError, match="Unsupported"): |
| 616 | command.parsearg(tctx.master.commands, "foo", type) |
| 617 | with pytest.raises(exceptions.CommandError): |
| 618 | command.parsearg(tctx.master.commands, "foo", int) |
| 619 | |
| 620 | |
| 621 | class TDec: |
nothing calls this directly
no test coverage detected
searching dependent graphs…