Permalink
Browse files

[fix] fix tests due to change of httpbin.org

  • Loading branch information...
zjuchenyuan committed Jul 3, 2018
1 parent a7827fe commit 1e84dcab0ddf3b2c3cbc25ba921979b56532e63c
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/test_cdn.py
@@ -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
@@ -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

0 comments on commit 1e84dca

Please sign in to comment.