Don't test code after database failure
This commit is contained in:
1 parent
cafff27206
commit
ad15cb6c9c
1 file changed
+6
@@ -178,6 +178,12 @@ class AccountPaymentSepaTestCase(unittest.TestCase):
|
||||
|
||||
mandate = Mandate(party=party, identification='')
|
||||
mandate.save()
|
||||
self.assertEqual(mandate.identification, None)
|
||||
|
||||
Mandate.write([mandate], {
|
||||
'identification': '',
|
||||
})
|
||||
self.assertEqual(mandate.identification, None)
|
||||
|
||||
self.assertRaises(UserError, Mandate.create, [{
|
||||
'party': party.id,
|
||||
|
||||
Reference in new issue
Block a user