From a3476d8baa4ff2ef50658f6adef8f089760c38a5 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Fri, 8 Jun 2018 16:20:43 -0700 Subject: [PATCH] tests: also rewrite 'test.httpbin.org' to internal httpbin to allow subdomain testing --- pywb/warcserver/test/testutils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pywb/warcserver/test/testutils.py b/pywb/warcserver/test/testutils.py index 1da837d5..dbf97650 100644 --- a/pywb/warcserver/test/testutils.py +++ b/pywb/warcserver/test/testutils.py @@ -173,6 +173,7 @@ class HttpBinLiveTests(object): httpbin_local = 'http://localhost:' + str(cls.httpbin_server.port) + '/' def get_load_url(self, params): + params['url'] = params['url'].replace('http://test.httpbin.org/', httpbin_local) params['url'] = params['url'].replace('http://httpbin.org/', httpbin_local) params['url'] = params['url'].replace('https://httpbin.org/', httpbin_local) return params['url']