MCPcopy Create free account
hub / github.com/dcos/dcos-cli / test_plugin_invalid_usage

Function test_plugin_invalid_usage

tests/integration/test_plugin.py:39–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def test_plugin_invalid_usage():
40 code, out, err = exec_cmd(['dcos', 'plugin', 'not-a-command'])
41 assert code != 0
42 assert out == ''
43 assert err == '''Usage:
44 dcos plugin [command]
45
46Commands:
47 add
48 Add a CLI plugin
49 list
50 List CLI plugins
51 remove
52 Remove a CLI plugin
53
54Options:
55 -h, --help
56 help for plugin
57
58Use "dcos plugin [command] --help" for more information about a command.
59
60Error: unknown command not-a-command
61'''
62
63
64def test_plugin_list(default_cluster):

Callers

nothing calls this directly

Calls 1

exec_cmdFunction · 0.85

Tested by

no test coverage detected