File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11
2- __version__ = '5.1.7.10 '
2+ __version__ = '5.1.8.0 '
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def long_description():
1616
1717setup (
1818 name = 'cos-python-sdk-v5' ,
19- version = '1.7.10 ' ,
19+ version = '1.8.0 ' ,
2020 url = 'https://www.qcloud.com/' ,
2121 license = 'MIT' ,
2222 author = 'tiedu, lewzylu, channingliu' ,
Original file line number Diff line number Diff line change 2020test_bucket = 'cos-python-v5-test-' + str (sys .version_info [0 ]) + '-' + str (sys .version_info [1 ]) + '-' + REGION + '-' + APPID
2121copy_test_bucket = 'copy-' + test_bucket
2222test_object = "test.txt"
23- test_image = "12.png"
2423special_file_name = "中文" + "→↓←→↖↗↙↘! \" #$%&'()*+,-./0123456789:;<=>@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\ ]^_`abcdefghijklmnopqrstuvwxyz{|}~"
2524conf = CosConfig (
2625 Region = REGION ,
@@ -1158,11 +1157,10 @@ def test_get_object_sensitive_content_recognition():
11581157 print (CiDetectType )
11591158 response = client .get_object_sensitive_content_recognition (
11601159 Bucket = test_bucket ,
1161- Key = test_image ,
1160+ Key = test_object ,
11621161 DetectType = (CiDetectType .PORN | CiDetectType .TERRORIST | CiDetectType .POLITICS | CiDetectType .ADS )
11631162 )
11641163 print (response )
1165- print (response ['PornInfo' ])
11661164 assert response
11671165
11681166if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments