Commit 19f16a86 authored by Jérome Perrin's avatar Jérome Perrin

ung_role: fix test teardown

Abort transaction, we do not need changes made by test to persist.

Execute pending activities before removing persons, the pending
activities might be relying on the existence of persons.
parent 5750c171
......@@ -39,6 +39,8 @@ class TestUNGSecurity(ERP5TypeTestCase):
return "Test UNG Security"
def beforeTearDown(self):
self.abort()
self.tic()
person_module = self.getPersonModule()
person_module.manage_delObjects(list(person_module.objectIds()))
self.tic()
......
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