@@ -51,7 +51,7 @@ def test_config_compatible(self, set_conf_default):
51
51
'set_conf_default' ,
52
52
[
53
53
{
54
- 'default_query_region_host' : 'https://fake-uc.phpsdk .qiniu.com'
54
+ 'default_query_region_host' : 'https://fake-uc.pysdk .qiniu.com'
55
55
}
56
56
],
57
57
indirect = True
@@ -66,9 +66,9 @@ def test_query_region_with_custom_domain(self, access_key, bucket_name, set_conf
66
66
'set_conf_default' ,
67
67
[
68
68
{
69
- 'default_query_region_host' : 'https://fake-uc.phpsdk .qiniu.com' ,
69
+ 'default_query_region_host' : 'https://fake-uc.pysdk .qiniu.com' ,
70
70
'default_query_region_backup_hosts' : [
71
- 'unavailable-uc.phpsdk .qiniu.com' ,
71
+ 'unavailable-uc.pysdk .qiniu.com' ,
72
72
'uc.qbox.me'
73
73
]
74
74
}
@@ -78,13 +78,13 @@ def test_query_region_with_custom_domain(self, access_key, bucket_name, set_conf
78
78
def test_query_region_with_backup_domains (self , access_key , bucket_name , set_conf_default ):
79
79
zone = Zone ()
80
80
data = zone .bucket_hosts (access_key , bucket_name )
81
- assert data != 'null'
81
+ assert data != 'null' and len ( data ) > 0
82
82
83
83
@pytest .mark .parametrize (
84
84
'set_conf_default' ,
85
85
[
86
86
{
87
- 'default_uc_host' : 'https://fake-uc.phpsdk .qiniu.com' ,
87
+ 'default_uc_host' : 'https://fake-uc.pysdk .qiniu.com' ,
88
88
'default_query_region_backup_hosts' : [
89
89
'unavailable-uc.phpsdk.qiniu.com' ,
90
90
'uc.qbox.me'
0 commit comments