[damned-lies] Add a git-enabled version of the test gnome-hello module



commit 916e83fec44fecb11c43f7fdacfe122dae574b23
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue Aug 11 18:09:00 2015 +0200

    Add a git-enabled version of the test gnome-hello module

 stats/tests/gnome-hello.tar.gz |  Bin 86413 -> 501760 bytes
 stats/tests/tests.py           |    3 ++-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/stats/tests/gnome-hello.tar.gz b/stats/tests/gnome-hello.tar.gz
index 08b5fcb..a010c61 100644
Binary files a/stats/tests/gnome-hello.tar.gz and b/stats/tests/gnome-hello.tar.gz differ
diff --git a/stats/tests/tests.py b/stats/tests/tests.py
index 1fa4699..e6a2cf3 100644
--- a/stats/tests/tests.py
+++ b/stats/tests/tests.py
@@ -118,7 +118,7 @@ class ModuleTestCase(TestCase):
         pot_doc_stat = Statistics.objects.get(branch=self.branch, domain__name='help', language=None)
         self.assertEqual(len(pot_doc_stat.full_po.figures), 2)
         fr_doc_stat = Statistics.objects.get(branch=self.branch, domain__name='help', language__locale='fr')
-        self.assertEqual(fr_doc_stat.translated(), 13)
+        self.assertEqual(fr_doc_stat.translated(), 41)
         self.assertEqual(len(pot_doc_stat.full_po.figures), len(fr_doc_stat.full_po.figures))
         self.assertEqual(fr_po_stat.po_url(), u"/POT/gnome-hello.master/gnome-hello.master.fr.po")
         self.assertEqual(fr_po_stat.pot_url(), u"/POT/gnome-hello.master/gnome-hello.master.pot")
@@ -128,6 +128,7 @@ class ModuleTestCase(TestCase):
             self.assertEqual(fr_po_stat.po_url(reduced=True), 
u"/POT/gnome-hello.master/gnome-hello.master.fr.reduced.po")
             self.assertEqual(fr_po_stat.translated(scope='part'), 44)
 
+    @test_scratchdir
     def test_branch_exists(self):
         branch = Branch.objects.get(name='master', module__name='zenity')
         self.assertFalse(branch._exists())


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]