mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix failing tests
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
3c6755d6ea
commit
d0f05e0558
2 changed files with 7 additions and 4 deletions
|
@ -24,8 +24,10 @@ def test_post_card():
|
|||
with patch("salt.utils.http.query", http_mock):
|
||||
ret = msteams.post_card("test")
|
||||
assert ret
|
||||
assert http_mock.assert_called_once_with(
|
||||
http_mock.assert_called_once_with(
|
||||
"https://example.com/web_hook",
|
||||
method="POST",
|
||||
header_dict={"Content-Type": "application/json"},
|
||||
data='{"text": "test", "title": Null, "themeColor": Null}',
|
||||
data='{"text": "test", "title": null, "themeColor": null}',
|
||||
status=True,
|
||||
)
|
||||
|
|
|
@ -87,6 +87,7 @@ def test_file_recurse_directory_test():
|
|||
"name": "/tmp/test",
|
||||
"result": False,
|
||||
}
|
||||
assert salt_dunder["cp.list_master_dirs"].assert_called_once_with(
|
||||
prefix="does_not_exist/"
|
||||
salt_dunder["cp.list_master_dirs"].assert_called_once_with(
|
||||
saltenv="base",
|
||||
prefix="does_not_exist/",
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue