@@ -51,7 +51,7 @@ def test_add_connection_info_args_to_parser(self):
51
51
"expected_result" : {"secret_ref" : "mock_secret" }
52
52
},
53
53
)
54
- def test_get_connnection_info_from_args (self , data ):
54
+ def test_get_connection_info_from_args (self , data ):
55
55
mock_args = mock .MagicMock ()
56
56
(mock_args .connection ,
57
57
mock_args .connection_file .__enter__ .return_value .read .return_value ,
@@ -62,11 +62,11 @@ def test_get_connnection_info_from_args(self, data):
62
62
if data ["expected_result" ] == "exception" :
63
63
self .assertRaises (
64
64
ValueError ,
65
- endpoints .get_connnection_info_from_args ,
65
+ endpoints .get_connection_info_from_args ,
66
66
mock_args
67
67
)
68
68
else :
69
- result = endpoints .get_connnection_info_from_args (
69
+ result = endpoints .get_connection_info_from_args (
70
70
mock_args , raise_if_none = data .get ("raise_if_none" , True ))
71
71
72
72
self .assertEqual (
@@ -185,10 +185,10 @@ def test_get_parser(
185
185
186
186
@mock .patch .object (endpoints .EndpointDetailFormatter ,
187
187
'get_formatted_entity' )
188
- @mock .patch .object (endpoints , 'get_connnection_info_from_args ' )
188
+ @mock .patch .object (endpoints , 'get_connection_info_from_args ' )
189
189
def test_take_action (
190
190
self ,
191
- mock_get_connnection_info_from_args ,
191
+ mock_get_connection_info_from_args ,
192
192
mock_get_formatted_entity
193
193
):
194
194
args = mock .Mock ()
@@ -212,11 +212,11 @@ def test_take_action(
212
212
mock_get_formatted_entity .return_value ,
213
213
result
214
214
)
215
- mock_get_connnection_info_from_args .assert_called_once_with (args )
215
+ mock_get_connection_info_from_args .assert_called_once_with (args )
216
216
mock_create .assert_called_once_with (
217
217
mock .sentinel .name ,
218
218
mock .sentinel .provider ,
219
- mock_get_connnection_info_from_args .return_value ,
219
+ mock_get_connection_info_from_args .return_value ,
220
220
mock .sentinel .description ,
221
221
regions = mock .sentinel .regions ,
222
222
)
@@ -238,10 +238,10 @@ def test_take_action_raises_connection(self):
238
238
239
239
@mock .patch .object (endpoints .EndpointDetailFormatter ,
240
240
'get_formatted_entity' )
241
- @mock .patch .object (endpoints , 'get_connnection_info_from_args ' )
241
+ @mock .patch .object (endpoints , 'get_connection_info_from_args ' )
242
242
def test_take_action_validation_failed (
243
243
self ,
244
- mock_get_connnection_info_from_args ,
244
+ mock_get_connection_info_from_args ,
245
245
mock_get_formatted_entity
246
246
):
247
247
args = mock .Mock ()
@@ -265,11 +265,11 @@ def test_take_action_validation_failed(
265
265
args
266
266
)
267
267
268
- mock_get_connnection_info_from_args .assert_called_once_with (args )
268
+ mock_get_connection_info_from_args .assert_called_once_with (args )
269
269
mock_create .assert_called_once_with (
270
270
mock .sentinel .name ,
271
271
mock .sentinel .provider ,
272
- mock_get_connnection_info_from_args .return_value ,
272
+ mock_get_connection_info_from_args .return_value ,
273
273
mock .sentinel .description ,
274
274
regions = mock .sentinel .regions ,
275
275
)
@@ -306,10 +306,10 @@ def test_get_parser(
306
306
307
307
@mock .patch .object (endpoints .EndpointDetailFormatter ,
308
308
'get_formatted_entity' )
309
- @mock .patch .object (endpoints , 'get_connnection_info_from_args ' )
309
+ @mock .patch .object (endpoints , 'get_connection_info_from_args ' )
310
310
def test_take_action (
311
311
self ,
312
- mock_get_connnection_info_from_args ,
312
+ mock_get_connection_info_from_args ,
313
313
mock_get_formatted_entity
314
314
):
315
315
args = mock .Mock ()
@@ -325,7 +325,7 @@ def test_take_action(
325
325
expected_updated_values = {
326
326
"name" : mock .sentinel .name ,
327
327
"description" : mock .sentinel .description ,
328
- "connection_info" : (mock_get_connnection_info_from_args .
328
+ "connection_info" : (mock_get_connection_info_from_args .
329
329
return_value ),
330
330
"mapped_regions" : mock .sentinel .regions ,
331
331
}
@@ -336,7 +336,7 @@ def test_take_action(
336
336
mock_get_formatted_entity .return_value ,
337
337
result
338
338
)
339
- mock_get_connnection_info_from_args .assert_called_once_with (
339
+ mock_get_connection_info_from_args .assert_called_once_with (
340
340
args , raise_if_none = False )
341
341
mock_update .assert_called_once_with (
342
342
mock .sentinel .id ,
0 commit comments