Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[fix] fix tests due to change of httpbin.org
  • Loading branch information
zjuchenyuan committed Jul 3, 2018
1 parent a7827fe commit 1e84dca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cdn.py
Expand Up @@ -214,7 +214,7 @@ def test_img_cdn_hard_rewrite(self):
with self.app.test_client() as c:
# 请求包含 https://httpbin.org/image/jpeg 的页面, 其中这张图片的链接会被重写成CDN
self.rv2 = c.get(
self.url("/"),
self.url("/base64/PGltZyBzcmM9Imh0dHBzOi8vaHR0cGJpbi5vcmcvaW1hZ2UvanBlZyI+Cg=="),
environ_base=env(),
headers=headers()
) # type: Response
Expand Down Expand Up @@ -264,9 +264,9 @@ def test_small_img_cdn_hard_rewrite(self):
self.assertEqual(8090, len(self.rv.data), msg=self.dump())

with self.app.test_client() as c:
# 请求包含 https://httpbin.org/image/jpeg 的页面, 其中这张图片的链接会被重写成CDN
# 请求包含 https://httpbin.org/image/png 的页面, 其中这张图片的链接会被重写成CDN
self.rv2 = c.get(
self.url("/"),
self.url("/base64/PGltZyBzcmM9Imh0dHBzOi8vaHR0cGJpbi5vcmcvaW1hZ2UvcG5nIj4K"),
environ_base=env(),
headers=headers()
) # type: Response
Expand Down

0 comments on commit 1e84dca

Please sign in to comment.