Commit b28c7ed2 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

erp5_workflow_test_data: check workflow history keys and their values in live test.

parent 9840e315
......@@ -250,6 +250,12 @@ class TestDCWorkflow(TestERP5WorkflowMixin):
checkLine({'state': 'invalidated'}, 4)
# check history keys are identical before and after conversion.
self.assertEqual(sorted(item_list[2].keys()),sorted(item_list[4].keys()))
# check key values are shown as expected;
expected_item_dict = {'comment': '', 'error_message': '', 'actor': 'ERP5TypeTestCase', 'state': 'invalidated', 'action': 'invalidate'}
for key in expected_item_dict:
self.assertEqual(item_list[4].getProperty(key), expected_item_dict[key])
# check date time is generated
self.assertTrue(item_list[4].getProperty('time') is not None)
def test_suite():
suite = unittest.TestSuite()
......
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