From c7d550a192c42729bb16f31b76b6e95de2e5af1b Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Wed, 16 Sep 2015 15:25:17 +0200 Subject: [PATCH] Document TestRevisionFlow testsuite --- partner_revision/tests/test_revision_flow.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/partner_revision/tests/test_revision_flow.py b/partner_revision/tests/test_revision_flow.py index ffd79a2c6..3fedcc678 100644 --- a/partner_revision/tests/test_revision_flow.py +++ b/partner_revision/tests/test_revision_flow.py @@ -27,8 +27,16 @@ from .common import RevisionMixin class TestRevisionFlow(RevisionMixin, common.TransactionCase): """ Check how revision are generated and applied based on the rules. - We do not really care about the types of the fields in this test suite, - but we have to ensure that the general revision flows work as expected. + We do not really care about the types of the fields in this test + suite, so we only use 'char' fields. We have to ensure that the + general revision flows work as expected, that is: + + * create a 'done' revision when a manual/system write is made on partner + * create a revision according to the revision rules when the key + '__revision_rules' is passed in the context + * apply a revision change writes the value on the partner + * apply a whole revision writes all the changes' values on the partner + * changes in state 'cancel' or 'done' do not write on the partner """ def _setup_behavior(self):