Skip to content

Commit f2d9f17

Browse files
committed
update test_private_url test resource
1 parent 1c4c709 commit f2d9f17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_qiniu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ class DownloadTestCase(unittest.TestCase):
414414
q = Auth(access_key, secret_key)
415415

416416
def test_private_url(self):
417-
private_bucket = 'private-res'
417+
private_bucket_domain = 'private-sdk.peterpy.cn'
418418
private_key = 'gogopher.jpg'
419-
base_url = 'http://%s/%s' % (private_bucket + '.qiniupkg.com', private_key)
419+
base_url = 'http://%s/%s' % (private_bucket_domain, private_key)
420420
private_url = self.q.private_download_url(base_url, expires=3600)
421421
print(private_url)
422422
r = requests.get(private_url)

0 commit comments

Comments
 (0)