summaryrefslogtreecommitdiff
path: root/tests/unittests/config/test_cc_ansible.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/config/test_cc_ansible.py')
-rw-r--r--tests/unittests/config/test_cc_ansible.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unittests/config/test_cc_ansible.py b/tests/unittests/config/test_cc_ansible.py
index bd8ec9bf..b009054f 100644
--- a/tests/unittests/config/test_cc_ansible.py
+++ b/tests/unittests/config/test_cc_ansible.py
@@ -301,12 +301,12 @@ class TestAnsible:
mocker.patch.dict(M_PATH + "os.environ", clear=True)
if exception:
with raises(exception):
- cc_ansible.handle("", cfg, get_cloud(), None, None)
+ cc_ansible.handle("", cfg, get_cloud(), None)
else:
cloud = get_cloud(mocked_distro=True)
cloud.distro.pip_package_name = "python3-pip"
install = cfg["ansible"]["install_method"]
- cc_ansible.handle("", cfg, cloud, None, None)
+ cc_ansible.handle("", cfg, cloud, None)
if install == "distro":
cloud.distro.install_packages.assert_called_once()
cloud.distro.install_packages.assert_called_with(
@@ -404,7 +404,7 @@ class TestAnsible:
@mock.patch(M_PATH + "validate_config")
def test_do_not_run(self, m_validate):
"""verify that if ansible key not included, don't do anything"""
- cc_ansible.handle("", {}, get_cloud(), None, None) # pyright: ignore
+ cc_ansible.handle("", {}, get_cloud(), None) # pyright: ignore
assert not m_validate.called
@mock.patch(
@@ -429,7 +429,7 @@ class TestAnsible:
@mock.patch(M_PATH + "subp", return_value=("stdout", "stderr"))
@mock.patch(M_PATH + "which", return_value=True)
def test_ansible_env_var(self, m_which, m_subp):
- cc_ansible.handle("", CFG_FULL_PULL, get_cloud(), mock.Mock(), [])
+ cc_ansible.handle("", CFG_FULL_PULL, get_cloud(), [])
# python 3.8 required for Mock.call_args.kwargs dict attribute
if isinstance(m_subp.call_args.kwargs, dict):