@@ -82,7 +82,7 @@ async def run_worker_with_mocks(poller: Worker) -> Dict[str, MagicMock]:
8282def test_worker_object_init_validation (poller_args ):
8383 """Test Poller object user_args validation
8484 """
85- cfg = load_sq_config (poller_args .config )
85+ cfg = load_sq_config (config_file = poller_args .config )
8686
8787 # Test invalid ssh config file
8888 poller_args .ssh_config_file = 'invalid'
@@ -98,7 +98,7 @@ def test_worker_object_init_validation(poller_args):
9898async def test_add_pop_worker_task (poller_args ):
9999 """Test the methods for adding and removing the poller tasks
100100 """
101- cfg = load_sq_config (poller_args .config )
101+ cfg = load_sq_config (config_file = poller_args .config )
102102 poller = Worker (poller_args , cfg )
103103 # Test add_poller_task()
104104 tasks = [asyncio .Future (), asyncio .Future ()]
@@ -122,7 +122,7 @@ async def test_add_pop_worker_task(poller_args):
122122async def test_poller_worker_run (poller_args ):
123123 """Check if all the services are launched after calling Poller.run()
124124 """
125- cfg = load_sq_config (poller_args .config )
125+ cfg = load_sq_config (config_file = poller_args .config )
126126 poller = Worker (poller_args , cfg )
127127
128128 mks = await run_worker_with_mocks (poller )
@@ -138,7 +138,7 @@ async def test_poller_worker_run(poller_args):
138138def test_worker_inventory_init (poller_args ):
139139 """Test if all the parameters are correctly passed to the Inventory
140140 """
141- cfg = load_sq_config (poller_args .config )
141+ cfg = load_sq_config (config_file = poller_args .config )
142142 poller_args .ssh_config_file = 'config/file'
143143 cfg ['poller' ]['connect-timeout' ] = 30
144144 with patch .multiple (Worker , _validate_worker_args = MagicMock ()):
@@ -158,7 +158,7 @@ def test_worker_inventory_init_addnl_args(poller_args):
158158 """Test if all the additional params are actually passed to the
159159 Inventory class init function
160160 """
161- cfg = load_sq_config (poller_args .config )
161+ cfg = load_sq_config (config_file = poller_args .config )
162162 poller_args .ssh_config_file = 'config/file'
163163 cfg ['poller' ]['connect-timeout' ] = 30
164164 dummy_inventory_class = MagicMock ()
@@ -202,7 +202,7 @@ def test_worker_inventory_init_addnl_args(poller_args):
202202def test_worker_service_manager_init (poller_args ):
203203 """Test if all the parameters are correctly passed to the ServiceManager
204204 """
205- cfg = load_sq_config (poller_args .config )
205+ cfg = load_sq_config (config_file = poller_args .config )
206206 poller_args .run_once = 'gather'
207207 cfg ['poller' ]['period' ] = 30
208208 poller = Worker (poller_args , cfg )
0 commit comments