diff --git a/bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py b/bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py index 6de9b64a967b66fa5f426175e7ce154993b24702..8c7eb9268dc4c2d2d0ee9fcad6d4656f81f9b345 100644 --- a/bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py +++ b/bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py @@ -162,6 +162,31 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase): self.assertEqual(sorted(['published', 'archived']), sorted([ q.getValidationState() for q in document_list])) + def test_post_information_more_than_once_no_tic(self): + """ + Check if posting information is working. + """ + self.postInformation() + transaction.commit() + + self.postInformation() + transaction.commit() + self.tic() + + self.assertEqual(1, self.portal.portal_catalog.countResults( + reference=self.key)[0][0]) + data_set = self.portal.portal_catalog.getResultValue( + reference=self.key) + self.assertEqual(self.key, data_set.getReference()) + self.assertEqual('published', data_set.getValidationState()) + + document_list = data_set.getFollowUpRelatedValueList() + + self.assertEqual([self.sha512sum, self.sha512sum], [q.getReference() for q \ + in document_list]) + self.assertEqual(sorted(['published', 'archived']), sorted([ + q.getValidationState() for q in document_list])) + def test_get_information_for_single_data_set(self): """ check if return the temp document with text content. diff --git a/bt5/erp5_web_shadir/bt/revision b/bt5/erp5_web_shadir/bt/revision index 4e9e288487445d1193130dba3e3c6af29b242115..4b6f9c39e5c757bf387d465c53026b336dd8b96c 100644 --- a/bt5/erp5_web_shadir/bt/revision +++ b/bt5/erp5_web_shadir/bt/revision @@ -1 +1 @@ -63 \ No newline at end of file +64 \ No newline at end of file