From: jhermann Date: Wed, 23 Jan 2002 20:09:41 +0000 (+0000) Subject: Proper fix for failing test X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ed92c7fc8fc8659143ec38219d6b5c87e0e53b30;p=roundup.git Proper fix for failing test git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@598 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/run_tests b/run_tests index a8c6272..0bfc161 100755 --- a/run_tests +++ b/run_tests @@ -9,16 +9,16 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: run_tests,v 1.2 2002-01-23 11:08:52 grubert Exp $ - -import os -os.environ['LANG'] = 'us' +# $Id: run_tests,v 1.3 2002-01-23 20:09:41 jhermann Exp $ import test test.go() # # $Log: not supported by cvs2svn $ +# Revision 1.2 2002/01/23 11:08:52 grubert +# . run_tests testReldate_date failed if LANG is 'german' +# # Revision 1.1 2002/01/23 05:53:46 richard # convenience script for running the unit tests... # ... they are no longer run in the setup, since they take too long diff --git a/test/test_htmltemplate.py b/test/test_htmltemplate.py index d72fda3..e5b1e8b 100644 --- a/test/test_htmltemplate.py +++ b/test/test_htmltemplate.py @@ -8,9 +8,9 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_htmltemplate.py,v 1.6 2002-01-23 05:47:57 richard Exp $ +# $Id: test_htmltemplate.py,v 1.7 2002-01-23 20:09:41 jhermann Exp $ -import unittest, cgi +import unittest, cgi, time from roundup import date, password from roundup.htmltemplate import TemplateFunctions @@ -237,7 +237,7 @@ class NodeCase(unittest.TestCase): def testReldate_date(self): self.assertEqual(self.tf.do_reldate('date'), '- 2y 1m') self.assertEqual(self.tf.do_reldate('date', pretty=1), - ' 1 January 2000') + ' 1 %s 2000' % time.strftime('%B', time.localtime(0))) # def do_download(self, property): def testDownload_novalue(self): @@ -314,6 +314,9 @@ def suite(): # # $Log: not supported by cvs2svn $ +# Revision 1.6 2002/01/23 05:47:57 richard +# more HTML template cleanup and unit tests +# # Revision 1.5 2002/01/23 05:10:28 richard # More HTML template cleanup and unit tests. # - download() now implemented correctly, replacing link(is_download=1) [fixed in the