18
18
from test .cache .storage .dummy_cache_storage import DummyCacheStorage
19
19
from test .helper_test import uploader_response_mock , SUFFIX , TEST_IMAGE , get_params , get_headers , TEST_ICON , TEST_DOC , \
20
20
REMOTE_TEST_IMAGE , UTC , populate_large_file , TEST_UNICODE_IMAGE , get_uri , get_method , get_param , \
21
- cleanup_test_resources_by_tag , cleanup_test_transformation , cleanup_test_resources , EVAL_STR
21
+ cleanup_test_resources_by_tag , cleanup_test_transformation , cleanup_test_resources , EVAL_STR , ON_SUCCESS_STR
22
22
from test .test_utils import TEST_ID , TEST_FOLDER
23
23
24
24
MOCK_RESPONSE = uploader_response_mock ()
@@ -427,13 +427,6 @@ def test_use_filename(self):
427
427
428
428
@unittest .skipUnless (cloudinary .config ().api_secret , "requires api_key/api_secret" )
429
429
def test_explicit (self ):
430
- """Should support explicit """
431
- result = uploader .explicit ("cloudinary" , type = "twitter_name" , eager = [TEST_TRANS_SCALE2_PNG ], tags = [UNIQUE_TAG ])
432
- params = dict (TEST_TRANS_SCALE2_PNG , type = "twitter_name" , version = result ["version" ])
433
- url = utils .cloudinary_url ("cloudinary" , ** params )[0 ]
434
- actual = result ["eager" ][0 ]["url" ]
435
- self .assertEqual (parse_url (actual ).path , parse_url (url ).path )
436
-
437
430
# Test explicit with metadata
438
431
resource = uploader .upload (TEST_IMAGE , tags = [UNIQUE_TAG ])
439
432
result_metadata = uploader .explicit (resource ['public_id' ], type = "upload" , metadata = METADATA_FIELDS ,
@@ -958,6 +951,7 @@ def test_various_upload_parameters(self, request_mock):
958
951
'accessibility_analysis' : True ,
959
952
'media_metadata' : True ,
960
953
'visual_search' : True ,
954
+ 'on_success' : ON_SUCCESS_STR
961
955
}
962
956
963
957
uploader .upload (TEST_IMAGE , ** options )
@@ -972,7 +966,6 @@ def test_various_upload_parameters(self, request_mock):
972
966
for param in options .keys ():
973
967
self .assertIn (param , params )
974
968
975
-
976
969
@unittest .skipUnless (cloudinary .config ().api_secret , "requires api_key/api_secret" )
977
970
def test_eval_upload_parameter (self ):
978
971
"""Should support eval in upload"""
0 commit comments