1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 01:03:24 +00:00

move off of mockbin on tornado tests also

This commit is contained in:
Thomas Grainger
2024-01-23 12:33:15 +00:00
parent b7f6c2fce2
commit 42b4a5d2fa

View File

@@ -162,9 +162,9 @@ def test_post(get_client, tmpdir, scheme):
@pytest.mark.online
@pytest.mark.gen_test
def test_redirects(get_client, tmpdir, scheme):
def test_redirects(get_client, tmpdir, httpbin):
"""Ensure that we can handle redirects"""
url = scheme + "://mockbin.org/redirect/301?url=bytes/1024"
url = httpbin + "/redirect-to?url=bytes/1024&status_code=301"
with vcr.use_cassette(str(tmpdir.join("requests.yaml"))):
content = (yield get(get_client(), url)).body