Commit 89adbbc6 authored by Christophe de Vienne's avatar 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
......@@ -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])
......
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