changeset 73542b3c60ea in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=73542b3c60ea
description:
        Do not read/test value after aborted transaction

        issue9796
        review328831002
diffstat:

 trytond/tests/test_modelstorage.py |  5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diffs (22 lines):

diff -r 86ae1d7b27a5 -r 73542b3c60ea trytond/tests/test_modelstorage.py
--- a/trytond/tests/test_modelstorage.py        Wed Nov 11 20:33:18 2020 +0100
+++ b/trytond/tests/test_modelstorage.py        Thu Nov 12 21:45:48 2020 +0100
@@ -120,9 +120,6 @@
         with self.assertRaises(RequiredValidationError):
             ModelStorage.save([foo, bar])
 
-        self.assertIsNone(foo.name)
-        self.assertEqual(bar.name, 'bar')
-
     @with_transaction()
     def test_fail_saving_mixed_context2(self):
         'Test fail saving with mixed context '
@@ -138,8 +135,6 @@
         foo.name = 'foo'
         with self.assertRaises(RequiredValidationError):
             ModelStorage.save([foo, bar])
-        self.assertEqual(foo.name, 'foo')
-        self.assertIsNone(bar.name)
 
     @with_transaction()
     def test_save_one2many_create(self):

Reply via email to