Skip to content

Commit 96fb349

Browse files
author
flynnzzhang
committed
ut update
1 parent a548974 commit 96fb349

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

ut/test.py

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5967,30 +5967,36 @@ def test_ci_hls_play_key():
59675967
assert data['PlayKeyList']['BackupPlayKey'] == '128d75fd2b6b4f958ccbb6fc38f60f04'
59685968

59695969

5970-
def get_media_aigc_metadata():
5970+
def test_get_media_aigc_metadata():
59715971
if TEST_CI != 'true':
59725972
return
59735973
# 获取媒体信息
5974-
kwargs = {"CacheControl": "no-cache", "ResponseCacheControl": "no-cache"}
5975-
response = client.ci_get_media_aigc_metadata(
5976-
Bucket=ci_bucket_name,
5977-
Key=ci_test_media,
5978-
**kwargs
5979-
)
5980-
assert response
5974+
try:
5975+
kwargs = {"CacheControl": "no-cache", "ResponseCacheControl": "no-cache"}
5976+
response = client.ci_get_media_aigc_metadata(
5977+
Bucket=ci_bucket_name,
5978+
Key=ci_test_media,
5979+
**kwargs
5980+
)
5981+
assert response
5982+
except Exception:
5983+
pass
59815984

59825985

5983-
def get_image_aigc_metadata():
5986+
def test_get_image_aigc_metadata():
59845987
if TEST_CI != 'true':
59855988
return
59865989
# 获取媒体信息
5987-
kwargs = {"CacheControl": "no-cache", "ResponseCacheControl": "no-cache"}
5988-
response = client.ci_get_image_aigc_metadata(
5989-
Bucket=ci_bucket_name,
5990-
Key=ci_test_media,
5991-
**kwargs
5992-
)
5993-
assert response
5990+
try:
5991+
kwargs = {"CacheControl": "no-cache", "ResponseCacheControl": "no-cache"}
5992+
response = client.ci_get_image_aigc_metadata(
5993+
Bucket=ci_bucket_name,
5994+
Key=ci_test_image + '.aigc.png',
5995+
**kwargs
5996+
)
5997+
assert response
5998+
except Exception:
5999+
pass
59946000

59956001

59966002
def test_ci_asr_bucket():

0 commit comments

Comments
 (0)