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:
Mike Durnosvistov
2014-11-18 15:19:31 +02:00
parent 9595d09e05
commit 6ab942dd19
21 changed files with 114 additions and 117 deletions

View File

@@ -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
-------------------