Fixe a bug in the test client causing url parameters to be removed. This fixes #968
This commit is contained in:
parent
52098e1e4f
commit
e7c587789a
3 changed files with 18 additions and 0 deletions
|
|
@ -31,6 +31,8 @@ def make_test_environ_builder(app, path='/', base_url=None, *args, **kwargs):
|
|||
base_url += app_root.lstrip('/')
|
||||
if url.netloc:
|
||||
path = url.path
|
||||
if url.query:
|
||||
path += '?' + url.query
|
||||
return EnvironBuilder(path, base_url, *args, **kwargs)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue