fix: Remove translated strings from test
This commit is contained in:
parent
4d9132e535
commit
8e131c7cad
@ -31,7 +31,7 @@ class TestBankAccount(unittest.TestCase):
|
|||||||
try:
|
try:
|
||||||
bank_account.validate_iban()
|
bank_account.validate_iban()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
msg = _('BankAccount.validate_iban() failed for empty IBAN')
|
msg = 'BankAccount.validate_iban() failed for empty IBAN'
|
||||||
self.fail(msg=msg)
|
self.fail(msg=msg)
|
||||||
|
|
||||||
for iban in valid_ibans:
|
for iban in valid_ibans:
|
||||||
@ -39,11 +39,11 @@ class TestBankAccount(unittest.TestCase):
|
|||||||
try:
|
try:
|
||||||
bank_account.validate_iban()
|
bank_account.validate_iban()
|
||||||
except ValidationError:
|
except ValidationError:
|
||||||
msg = _('BankAccount.validate_iban() failed for valid IBAN {}').format(iban)
|
msg = 'BankAccount.validate_iban() failed for valid IBAN {}'.format(iban)
|
||||||
self.fail(msg=msg)
|
self.fail(msg=msg)
|
||||||
|
|
||||||
for not_iban in invalid_ibans:
|
for not_iban in invalid_ibans:
|
||||||
bank_account.iban = not_iban
|
bank_account.iban = not_iban
|
||||||
msg = _('BankAccount.validate_iban() accepted invalid IBAN {}').format(not_iban)
|
msg = 'BankAccount.validate_iban() accepted invalid IBAN {}'.format(not_iban)
|
||||||
with self.assertRaises(ValidationError, msg=msg):
|
with self.assertRaises(ValidationError, msg=msg):
|
||||||
bank_account.validate_iban()
|
bank_account.validate_iban()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user