summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c496931)
raw | patch | inline | side by side (parent: c496931)
author | jhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 23 Jan 2002 20:09:41 +0000 (20:09 +0000) | ||
committer | jhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 23 Jan 2002 20:09:41 +0000 (20:09 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@598 57a73879-2fb5-44c3-a270-3262357dd7e2
run_tests | patch | blob | history | |
test/test_htmltemplate.py | patch | blob | history |
diff --git a/run_tests b/run_tests
index a8c6272d6359632f4b361f77f7916b91b8f1d8fb..0bfc161bc9ed11f3b6c6a2eb8fe1dd660719b288 100755 (executable)
--- a/run_tests
+++ b/run_tests
# 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
index d72fda39abad064dc96943f90ce1df8fc7ae3384..e5b1e8b7c9407d11d7cb15d032937a33f6e7825a 100644 (file)
# 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
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):
#
# $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