Don't translate exceptions in tests
Exception lines in unit tests won't ever be run in production, no reason to translate them. Added hacking rule for not importing i18n translation in tests. Change-Id: I92f546166d4e0b2fa8dc2018c6d3e268b8ec4c0b
This commit is contained in:
parent
b1c97bbf10
commit
cad3680763
|
@ -48,6 +48,7 @@ Nova Specific Commandments
|
|||
assertIn/NotIn(A, B, message)
|
||||
- [N335] Check for usage of deprecated assertRaisesRegexp
|
||||
- [N336] Must use a dict comprehension instead of a dict constructor with a sequence of key-value pairs.
|
||||
- [N337] Don't import translation in tests
|
||||
|
||||
Creating Unit Tests
|
||||
-------------------
|
||||
|
|
Loading…
Reference in New Issue