@@ -288,10 +288,6 @@ def test_upload_to_sg(self, mock_send_form):
288
288
"attachments" ,
289
289
tag_list = "monkeys, everywhere, send, help" ,
290
290
)
291
- < << << << HEAD
292
- == == == =
293
-
294
- >> >> >> > 413 afc6 (SSL )
295
291
mock_send_form .assert_called_once ()
296
292
mock_send_form_args , _ = mock_send_form .call_args
297
293
display_name_to_send = mock_send_form_args [1 ].get ("display_name" , "" )
@@ -315,11 +311,7 @@ def test_upload_to_sg(self, mock_send_form):
315
311
display_name_to_send .startswith ("b'" ) and display_name_to_send .endswith ("'" )
316
312
)
317
313
318
- < << << << HEAD
319
314
mock_send_form .reset_mock ()
320
- == == == =
321
- # mock_send_form.method.assert_called_once() ## CANOT work because was already called earlier....
322
- >> >> >> > 413 afc6 (SSL )
323
315
mock_send_form .return_value = "2\n It can't be upload"
324
316
self .assertRaises (
325
317
shotgun_api3 .ShotgunError ,
@@ -701,10 +693,6 @@ def test_share_thumbnail_not_ready(self, mock_send_form):
701
693
def test_share_thumbnail_returns_error (self , mock_send_form ):
702
694
"""throw an exception if server returns an error code"""
703
695
704
- < << << << HEAD
705
- == == == =
706
- # mock_send_form.method.assert_called_once() # never worked.....
707
- >> >> >> > 413 afc6 (SSL )
708
696
mock_send_form .return_value = "1\n error message.\n "
709
697
710
698
self .assertRaises (
@@ -2260,7 +2248,7 @@ def my_side_effect2(*args, **kwargs):
2260
2248
finally :
2261
2249
self .sg .config .rpc_attempt_interval = bak_rpc_attempt_interval
2262
2250
2263
- @unittest .mock .patch .object (urllib .request .OpenerDirector , ' open' )
2251
+ @unittest .mock .patch .object (urllib .request .OpenerDirector , " open" )
2264
2252
def test_sanitized_auth_params (self , mock_open ):
2265
2253
# Simulate the server blowing up and giving us a 500 error
2266
2254
mock_open .side_effect = urllib .error .HTTPError ("url" , 500 , "message" , {}, None )
0 commit comments