[damned-lies] Fix possible translation test failure
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Fix possible translation test failure
- Date: Wed, 4 Sep 2013 12:19:32 +0000 (UTC)
commit 75f8c7347df9a0e469c2dd633afa8966978d6465
Author: Claude Paroz <claude 2xlibre net>
Date: Wed Sep 4 14:18:09 2013 +0200
Fix possible translation test failure
vertimus/tests/__init__.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vertimus/tests/__init__.py b/vertimus/tests/__init__.py
index 99b0f16..160b40b 100644
--- a/vertimus/tests/__init__.py
+++ b/vertimus/tests/__init__.py
@@ -318,7 +318,8 @@ class VertimusTest(TeamsAndRolesTests):
# Mail sent to mailing list
self.assertEquals(len(mail.outbox), 1)
self.assertEquals(mail.outbox[0].recipients(), [self.l.team.mailing_list])
- self.assertTrue(u'Commité' in mail.outbox[0].body) # Team is French
+ # Team is French (but translations may not be compiled/up-to-date)
+ self.assertTrue(u'Commité' in mail.outbox[0].body or "Committed" in mail.outbox[0].body)
self.assertTrue(isinstance(state, StateNone))
self.assertTrue(not os.access(file_path, os.F_OK), "%s not deleted" % file_path)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]