Commit 608635ea authored by Jérome Perrin's avatar Jérome Perrin

commerce: clear sessions between tests

When sessions uses a RAMCache, the portal_caches.clearAllCache is enough to
reset the session, but not when using a distributed cache.
parent bac5ff3f
......@@ -197,6 +197,8 @@ class TestCommerce(ERP5TypeTestCase):
self.clearModule(self.portal.currency_module)
self.clearModule(self.portal.sale_trade_condition_module)
self.portal.portal_caches.clearAllCache()
self.portal.portal_sessions.manage_delObjects([SESSION_ID])
self.commit()
def createDefaultOrganisation(self):
"""
......
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