(self)
| 91 | assert command.Command(cm, "invalidarg", a.invalidarg) |
| 92 | |
| 93 | def test_varargs(self): |
| 94 | with taddons.context() as tctx: |
| 95 | cm = command.CommandManager(tctx.master) |
| 96 | a = TAddon() |
| 97 | c = command.Command(cm, "varargs", a.varargs) |
| 98 | assert c.signature_help() == "varargs one *var -> str[]" |
| 99 | assert c.call(["one", "two", "three"]) == ["two", "three"] |
| 100 | |
| 101 | def test_call(self): |
| 102 | with taddons.context() as tctx: |
nothing calls this directly
no test coverage detected