Commit ef1f8e24 authored by Sylvie Ye's avatar Sylvie Ye Committed by Vincent A

[application/boobank] add recipient sanity check

add sanity check on:
* recipient.category (have to be 'Interne' or 'Externe')
* recipient.enabled_at (today or later)
parent 913d54e4
Pipeline #2348 canceled with stages
......@@ -180,3 +180,5 @@ class BankStandardTest(object):
def check_recipient(self, account, rcpt):
self.assertTrue(rcpt.id, 'recipient %r has no id' % rcpt)
self.assertTrue(rcpt.label, 'recipient %r has no label' % rcpt)
self.assertTrue(rcpt.category, 'recipient %r has no category' % rcpt)
self.assertTrue(rcpt.enabled_at, 'recipient %r has no enabled_at' % rcpt)
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