From 42b4a5d2fafcf15b9a50b25180415c9ea66dfccd Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 23 Jan 2024 12:33:15 +0000 Subject: [PATCH] move off of mockbin on tornado tests also --- tests/integration/test_tornado.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_tornado.py b/tests/integration/test_tornado.py index eeb326f..16455a3 100644 --- a/tests/integration/test_tornado.py +++ b/tests/integration/test_tornado.py @@ -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