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