Commit ce50c42d authored by Noé Gaumont's avatar Noé Gaumont 🐙
Browse files

fix: add default value form params in pyramid webtest

fix #350

--HG--
branch : 3.32
parent 7959196b0073
......@@ -17,14 +17,15 @@ class TestApp(webtest.TestApp):
def post(
self,
route,
params,
params=None,
do_not_grab_the_crsf_token=False,
do_not_inject_origin=False,
form_with_csrf_token_url="/login",
form_number=0,
**kwargs,
):
if params is None:
params = {}
if self._ident_cookie:
if "headers" in kwargs and "Cookie" not in kwargs["headers"]:
kwargs["headers"]["Cookie"] = self._ident_cookie
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment