Skip to content

Commit 9bb064d

Browse files
committed
ut
1 parent 99a3ab3 commit 9bb064d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ut/test.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,8 +2070,8 @@ def test_live_channel():
20702070
response = client.get_vod_playlist(
20712071
Bucket=test_bucket,
20722072
ChannelName=channel_name,
2073-
StartTime=0,
2074-
EndTime=datetime.now().timestamp()
2073+
StartTime=int(datetime.now().timestamp()-100000),
2074+
EndTime=int(datetime.now().timestamp())
20752075
)
20762076

20772077
print("delete live channel...")
@@ -3442,10 +3442,13 @@ def test_cos_comm_misc():
34423442
r = format_path('/test/path/to')
34433443
assert r == 'test/path/to'
34443444

3445+
def test_cosconfig_misc():
3446+
test_conf = CosConfig(Access_id=SECRET_ID, Access_key=SECRET_KEY)
3447+
test_conf.set_ip_port('10.0.0.1', 80)
3448+
test_conf.set_credential(SecretId=SECRET_ID, SecretKey=SECRET_KEY, Token=None)
34453449

34463450
if __name__ == "__main__":
34473451
setUp()
3448-
test_cos_comm_misc()
34493452
"""
34503453
test_config_invalid_scheme()
34513454
test_config_credential_inst()

0 commit comments

Comments
 (0)