Fix failing tests

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-09-14 08:03:14 +01:00 committed by Pedro Algarvio
parent 9f2d4cfe3c
commit 6c762d7fb1
2 changed files with 7 additions and 4 deletions

View file

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

View file

@ -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/",
)