Commit 914f46fe authored by Vincent Pelletier's avatar Vincent Pelletier

testCopySupport: Do not contaminate other tests in same file.

parent 0c568094
......@@ -66,6 +66,7 @@ class TestCopySupport(ERP5TypeTestCase):
# Try to rename: must work
self.organisation_module.setId('new_organisation_module')
self.commit()
try:
self.assertTrue(person.getCareerSubordination().startswith('organisation_module'))
initial_activity_count = len(self.portal.portal_activities.getMessageList())
self.assertNotEqual(0, initial_activity_count)
......@@ -78,6 +79,10 @@ class TestCopySupport(ERP5TypeTestCase):
# Check that external relation was updated
self.assertTrue(person.getCareerSubordination().startswith('new_organisation_module'))
self.assertTrue(person.getCareerSubordinationValue().aq_base is organisation.aq_base)
except Exception:
self.abort()
raise
finally:
# Rename back to original name
self.organisation_module.setId('organisation_module')
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