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:
parent
2825535ae2
commit
a3476d8baa
@ -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']
|
||||
|
Loading…
x
Reference in New Issue
Block a user