Mercurial > genshi > genshi-test
annotate genshi/tests/__init__.py @ 930:0ec0a695ec96
Merge r1138 from py3k: add python 3 support to _speedups C extension
author | hodgestar |
---|---|
date | Fri, 18 Mar 2011 09:04:14 +0000 |
parents | 90f5908cd10a |
children | 93e0f2c89576 |
rev | line source |
---|---|
1 | 1 # -*- coding: utf-8 -*- |
2 # | |
66
822089ae65ce
Switch copyright to Edgewall and URLs to markup.edgewall.org.
cmlenz
parents:
27
diff
changeset
|
3 # Copyright (C) 2006 Edgewall Software |
1 | 4 # All rights reserved. |
5 # | |
6 # This software is licensed as described in the file COPYING, which | |
7 # you should have received as part of this distribution. The terms | |
230 | 8 # are also available at http://genshi.edgewall.org/wiki/License. |
1 | 9 # |
10 # This software consists of voluntary contributions made by many | |
11 # individuals. For the exact contribution history, see the revision | |
230 | 12 # history and logs, available at http://genshi.edgewall.org/log/. |
1 | 13 |
14 import unittest | |
15 | |
16 def suite(): | |
230 | 17 import genshi |
446
90f5908cd10a
Add basic I18n/L10n functionality, based on GenshiRecipes/Localization.
cmlenz
parents:
336
diff
changeset
|
18 from genshi.tests import builder, core, input, output, path, util |
90f5908cd10a
Add basic I18n/L10n functionality, based on GenshiRecipes/Localization.
cmlenz
parents:
336
diff
changeset
|
19 from genshi.filters import tests as filters |
336
5f2c7782cd8a
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
274
diff
changeset
|
20 from genshi.template import tests as template |
5f2c7782cd8a
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
274
diff
changeset
|
21 |
1 | 22 suite = unittest.TestSuite() |
23 suite.addTest(builder.suite()) | |
24 suite.addTest(core.suite()) | |
115 | 25 suite.addTest(filters.suite()) |
1 | 26 suite.addTest(input.suite()) |
27 suite.addTest(output.suite()) | |
28 suite.addTest(path.suite()) | |
29 suite.addTest(template.suite()) | |
274
c5ec3146fcb6
Use an LRU cache for caching parsed templates in the `TemplateLoader`. LRU cache implementation is a simplified version of the `LRUCache` class in [http://www.myghty.org/ Myghty].
cmlenz
parents:
230
diff
changeset
|
30 suite.addTest(util.suite()) |
1 | 31 return suite |
32 | |
33 if __name__ == '__main__': | |
34 unittest.main(defaultTest='suite') |