Skip to content

Commit 4991d3d

Browse files
jairhenriquekevin1024
authored andcommitted
Fix tornado tests
1 parent b219382 commit 4991d3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: tests/integration/test_tornado.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ def test_body(get_client, tmpdir, scheme):
9090
@pytest.mark.gen_test
9191
def test_effective_url(get_client, scheme, tmpdir):
9292
"""Ensure that the effective_url is captured"""
93-
url = scheme + "://httpbin.org/redirect-to?url=/html"
93+
url = scheme + "://mockbin.org/redirect/301?url=/html"
9494
with vcr.use_cassette(str(tmpdir.join("url.yaml"))):
9595
effective_url = (yield get(get_client(), url)).effective_url
96-
assert effective_url == scheme + "://httpbin.org/html"
96+
assert effective_url == scheme + "://mockbin.org/redirect/301/0"
9797

9898
with vcr.use_cassette(str(tmpdir.join("url.yaml"))) as cass:
9999
assert effective_url == (yield get(get_client(), url)).effective_url
@@ -156,7 +156,7 @@ def test_post(get_client, tmpdir, scheme):
156156
@pytest.mark.gen_test
157157
def test_redirects(get_client, tmpdir, scheme):
158158
"""Ensure that we can handle redirects"""
159-
url = scheme + "://httpbin.org/redirect-to?url=bytes/1024"
159+
url = scheme + "://mockbin.org/redirect/301?url=bytes/1024"
160160
with vcr.use_cassette(str(tmpdir.join("requests.yaml"))):
161161
content = (yield get(get_client(), url)).body
162162

0 commit comments

Comments
 (0)