1818from test .cache .storage .dummy_cache_storage import DummyCacheStorage
1919from test .helper_test import uploader_response_mock , SUFFIX , TEST_IMAGE , get_params , get_headers , TEST_ICON , TEST_DOC , \
2020 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
2222from test .test_utils import TEST_ID , TEST_FOLDER
2323
2424MOCK_RESPONSE = uploader_response_mock ()
@@ -427,13 +427,6 @@ def test_use_filename(self):
427427
428428 @unittest .skipUnless (cloudinary .config ().api_secret , "requires api_key/api_secret" )
429429 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-
437430 # Test explicit with metadata
438431 resource = uploader .upload (TEST_IMAGE , tags = [UNIQUE_TAG ])
439432 result_metadata = uploader .explicit (resource ['public_id' ], type = "upload" , metadata = METADATA_FIELDS ,
@@ -958,6 +951,7 @@ def test_various_upload_parameters(self, request_mock):
958951 'accessibility_analysis' : True ,
959952 'media_metadata' : True ,
960953 'visual_search' : True ,
954+ 'on_success' : ON_SUCCESS_STR
961955 }
962956
963957 uploader .upload (TEST_IMAGE , ** options )
@@ -972,7 +966,6 @@ def test_various_upload_parameters(self, request_mock):
972966 for param in options .keys ():
973967 self .assertIn (param , params )
974968
975-
976969 @unittest .skipUnless (cloudinary .config ().api_secret , "requires api_key/api_secret" )
977970 def test_eval_upload_parameter (self ):
978971 """Should support eval in upload"""
0 commit comments