[Checkins] SVN: grokproject/trunk/tests_paste.txt fix brittle i18n part test - not fully sure though what the intended behaviour should be though

Jan-Wijbrand Kolman janwijbrand at gmail.com
Mon Oct 25 08:02:17 EDT 2010


Log message for revision 117848:
  fix brittle i18n part test - not fully sure though what the intended behaviour should be though

Changed:
  U   grokproject/trunk/tests_paste.txt

-=-
Modified: grokproject/trunk/tests_paste.txt
===================================================================
--- grokproject/trunk/tests_paste.txt	2010-10-25 12:01:39 UTC (rev 117847)
+++ grokproject/trunk/tests_paste.txt	2010-10-25 12:02:16 UTC (rev 117848)
@@ -26,8 +26,6 @@
     Creating directory '...parts'.
     Creating directory '...develop-eggs'.
     ...
-    Generated script '...buildout'.
-    ...
     Develop: '...GrokExample...'
     ...
     Generated script '...paster'.
@@ -230,14 +228,16 @@
 
 We modify the translation to give some more interesting results:
 
-    >>> po_file = po_file.replace('translatable.py:6\n',
-    ...                           'translatable.py:6\n#, fuzzy\n')
+    >>> po_file = po_file.replace('translatable.py:7\n',
+    ...                           'translatable.py:7\n#, fuzzy\n')
     >>> po_file = po_file.replace('"mytitle"\nmsgstr ""',
     ...                           '"mytitle"\nmsgstr "Mein Titel"')
     >>> po_file = po_file.replace('"name"\nmsgstr ""',
     ...                           '"name"\nmsgstr "Name"')
     >>> open(po_file_path, 'wb').write(po_file)
 
+    >>> print po_file
+
 We can merge all translations with bin/i18nmergeall:
 
     >>> cmd = os.path.join(bin_dir, 'i18nmergeall')
@@ -252,7 +252,7 @@
     >>> print output
     Language    Total    Done    Not Done    Fuzzy      Done %
     ==========================================================
-    de              3       1           1        1     33.33 %
+    de              2       1           1        0     50.00 %
 
 
 Using the generated `test` script



More information about the checkins mailing list