@@ -128,7 +128,7 @@ def test_from_config_with_explicit_params(self):
128128
129129 captured_args = {}
130130
131- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
131+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
132132 captured_args ["host" ] = host
133133 captured_args ["user" ] = user
134134 captured_args ["port" ] = port
@@ -158,7 +158,7 @@ def test_from_config_with_dict(self):
158158
159159 captured_args = {}
160160
161- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
161+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
162162 captured_args ["host" ] = host
163163 captured_args ["port" ] = port
164164
@@ -175,7 +175,7 @@ def test_from_config_kwargs_override_dict(self):
175175 cfg = {"host" : "dicthost" , "user" : "dictuser" , "password" : "dictpass" }
176176 captured_args = {}
177177
178- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
178+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
179179 captured_args ["host" ] = host
180180 captured_args ["user" ] = user
181181
@@ -193,7 +193,7 @@ def test_from_config_works_in_thread_safe_mode(self):
193193
194194 captured_args = {}
195195
196- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
196+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
197197 captured_args ["host" ] = host
198198
199199 with patch .object (dj .Connection , "__init__" , mock_init ):
@@ -212,7 +212,7 @@ def test_from_config_default_port_mysql(self):
212212
213213 captured_args = {}
214214
215- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
215+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
216216 captured_args ["port" ] = port
217217 captured_args ["backend" ] = backend
218218
@@ -228,7 +228,7 @@ def test_from_config_default_port_postgresql(self):
228228
229229 captured_args = {}
230230
231- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
231+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
232232 captured_args ["port" ] = port
233233
234234 with patch .object (dj .Connection , "__init__" , mock_init ):
@@ -401,7 +401,7 @@ def test_from_config_creates_connection_config(self):
401401
402402 captured_config = {}
403403
404- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
404+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
405405 captured_config ["config" ] = _config
406406
407407 with patch .object (dj .Connection , "__init__" , mock_init ):
@@ -417,7 +417,7 @@ def test_from_config_passes_all_settings(self):
417417
418418 captured_config = {}
419419
420- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
420+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
421421 captured_config ["config" ] = _config
422422
423423 with patch .object (dj .Connection , "__init__" , mock_init ):
@@ -443,7 +443,7 @@ def test_from_config_extracts_settings_from_dict(self):
443443
444444 captured_config = {}
445445
446- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
446+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
447447 captured_config ["config" ] = _config
448448
449449 cfg_dict = {
@@ -471,7 +471,7 @@ def test_from_config_does_not_use_global_fallback(self):
471471
472472 captured_config = {}
473473
474- def mock_init (self , host , user , password , port = None , init_fun = None , use_tls = None , backend = None , * , _config = None ):
474+ def mock_init (self , host , user , password , port = None , use_tls = None , backend = None , * , _config = None ):
475475 captured_config ["config" ] = _config
476476
477477 try :
0 commit comments