Commit ef315538 authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! erp5-upgrader: new test for sequentiality of activities run by upgrader

parent 3db4096e
......@@ -821,6 +821,12 @@ class TestUpgrader(ERP5TypeTestCase):
title = person.getTitle()
self.assertEqual(title, 'M. post_upgrade')
def stepCheckPersonTitleHistory(self, sequence=None):
person = sequence['person']
self.assertEqual(
[x.changes for x in self.portal.person_module['1'].Base_getZODBHistoryList()[-3:]],
[('title:M. pre_upgrade',), ('title:M. upgrader',), ('title:M. post_upgrade',)])
def test_upgrade_activities_are_run_sequentially(self):
"""
Check that activities spawned by the upgrader are always run in the same
......@@ -839,6 +845,7 @@ class TestUpgrader(ERP5TypeTestCase):
stepRunFullUpgrader
stepTic
stepCheckPersonTitleHasBeenSetByPersonTitlePostUpgradeConstraint
stepCheckPersonTitleHistory
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
\ No newline at end of file
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