(self)
| 254 | self._validate_parser(args_list) |
| 255 | |
| 256 | def test_action_execution(self): |
| 257 | args_list = [ |
| 258 | ["execution", "list"], |
| 259 | ["execution", "list", "-a", "all"], |
| 260 | ["execution", "list", "--attr=all"], |
| 261 | ["execution", "get", "123"], |
| 262 | ["execution", "get", "123", "-d"], |
| 263 | ["execution", "get", "123", "-k", "localhost.stdout"], |
| 264 | ["execution", "re-run", "123"], |
| 265 | ["execution", "re-run", "123", "--tasks", "x", "y", "z"], |
| 266 | ["execution", "re-run", "123", "--tasks", "x", "y", "z", "--no-reset", "x"], |
| 267 | ["execution", "re-run", "123", "a=1", "b=x", "c=True"], |
| 268 | ["execution", "cancel", "123"], |
| 269 | ["execution", "cancel", "123", "456"], |
| 270 | ["execution", "pause", "123"], |
| 271 | ["execution", "pause", "123", "456"], |
| 272 | ["execution", "resume", "123"], |
| 273 | ["execution", "resume", "123", "456"], |
| 274 | ] |
| 275 | self._validate_parser(args_list) |
| 276 | |
| 277 | # Test mutually exclusive argument groups |
| 278 | self.assertRaises( |
| 279 | SystemExit, |
| 280 | self._validate_parser, |
| 281 | [["execution", "get", "123", "-d", "-k", "localhost.stdout"]], |
| 282 | ) |
| 283 | |
| 284 | def test_key(self): |
| 285 | args_list = [ |
nothing calls this directly
no test coverage detected