Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubicweb
Commits
019f77f92420
Commit
ce50c42d
authored
Jul 30, 2021
by
Noé Gaumont
🐙
Browse files
fix: add default value form params in pyramid webtest
fix
#350
--HG-- branch : 3.32
parent
7959196b0073
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb/pyramid/test/__init__.py
View file @
019f77f9
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment