mirror of
https://github.com/saltstack/salt.git
synced 2025-04-10 14:51:40 +00:00
No need to assert against custom modules nor it's docstring
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
a3b29c8341
commit
66d35aa335
1 changed files with 4 additions and 15 deletions
|
@ -425,18 +425,7 @@ def test_local_salt_call_no_function_no_retcode(salt_call_cli):
|
|||
"""
|
||||
ret = salt_call_cli.run("--local", "test")
|
||||
assert ret.returncode == 1
|
||||
|
||||
state_run_dict = ret.data
|
||||
assert "test" in state_run_dict
|
||||
assert state_run_dict["test"] == "'test' is not available."
|
||||
|
||||
assert "test.recho" in state_run_dict
|
||||
|
||||
expected = """
|
||||
Return a reversed string
|
||||
|
||||
CLI Example:
|
||||
|
||||
salt '*' test.recho 'foo bar baz quo qux'
|
||||
"""
|
||||
assert state_run_dict["test.recho"] == expected
|
||||
assert ret.data
|
||||
assert "test" in ret.data
|
||||
assert ret.data["test"] == "'test' is not available."
|
||||
assert "test.echo" in ret.data
|
||||
|
|
Loading…
Add table
Reference in a new issue