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
cubes
oauth
Commits
4e9b11d1149d
Commit
89adbbc6
authored
Jun 18, 2014
by
Christophe de Vienne
Browse files
Use TestApp.reset() instead of accessing the cookiejar directly.
It should make the test more compatible with older WebTest versions
parent
da6740936d8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_oauth.py
View file @
4e9b11d1
...
...
@@ -344,7 +344,7 @@ class OAuthTC(CubicWebTestTC):
self
.
login
()
self
.
assertEqual
(
'zeuser'
,
self
.
webapp
.
cookies
[
'__data_session'
][:
6
])
self
.
webapp
.
cookiejar
.
clear
()
self
.
webapp
.
reset
()
self
.
login
(
oauthtoken
=
"SOMETOKEN"
,
autologin
=
True
)
self
.
assertEqual
(
'zeuser'
,
self
.
webapp
.
cookies
[
'__data_session'
][:
6
])
...
...
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