1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

tests: also rewrite 'test.httpbin.org' to internal httpbin to allow subdomain testing

This commit is contained in:
Ilya Kreymer 2018-06-08 16:20:43 -07:00
parent 2825535ae2
commit a3476d8baa

View File

@ -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']