@@ -38,21 +38,6 @@ class TestCase(unittest.TestCase):
3838
3939 maxDiff = None
4040
41- @mock .patch .dict (os .environ , {}, clear = True )
42- def test_control_host_bootstrap_install_only_default_false (self ):
43- command = commands .ControlHostBootstrap (TestApp (), [])
44- parser = command .get_parser ("test" )
45- parsed_args = parser .parse_args ([])
46- self .assertFalse (parsed_args .install_only )
47-
48- @mock .patch .dict (os .environ , {"KAYOBE_INSTALL_ONLY" : "false" },
49- clear = True )
50- def test_control_host_bootstrap_install_only_default_false_from_env (self ):
51- command = commands .ControlHostBootstrap (TestApp (), [])
52- parser = command .get_parser ("test" )
53- parsed_args = parser .parse_args ([])
54- self .assertFalse (parsed_args .install_only )
55-
5641 @mock .patch .object (ansible , "install_galaxy_roles" , autospec = True )
5742 @mock .patch .object (ansible , "install_galaxy_collections" , autospec = True )
5843 @mock .patch .object (ansible , "passwords_yml_exists" , autospec = True )
@@ -70,11 +55,6 @@ def test_control_host_bootstrap(self, mock_run, mock_passwords,
7055 mock_install_roles .assert_called_once_with (parsed_args )
7156 mock_install_collections .assert_called_once_with (parsed_args )
7257 expected_calls = [
73- mock .call (
74- mock .ANY ,
75- [utils .get_data_files_path ("ansible" , "install.yml" )],
76- ignore_limit = True ,
77- ),
7858 mock .call (
7959 mock .ANY ,
8060 [utils .get_data_files_path ("ansible" , "bootstrap.yml" )],
@@ -109,11 +89,6 @@ def test_control_host_bootstrap_with_passwords(
10989 mock_install_roles .assert_called_once_with (parsed_args )
11090 mock_install_collections .assert_called_once_with (parsed_args )
11191 expected_calls = [
112- mock .call (
113- mock .ANY ,
114- [utils .get_data_files_path ("ansible" , "install.yml" )],
115- ignore_limit = True ,
116- ),
11792 mock .call (
11893 mock .ANY ,
11994 [utils .get_data_files_path ("ansible" , "bootstrap.yml" )],
0 commit comments