No need to assert against custom modules nor it's docstring

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2022-12-19 13:14:44 +00:00 committed by Pedro Algarvio
parent a3b29c8341
commit 66d35aa335

View file

@ -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