annotate babel/messages/tests/__init__.py @ 547:274f9a6485d4

Catalog class should not do decoding of input strings (fixes #256)
author fschwarz
date Sat, 19 Mar 2011 19:34:40 +0000
parents e93f68837913
children
rev   line source
3
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
1 # -*- coding: utf-8 -*-
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
2 #
532
e93f68837913 Update the copyright line.
jruigrok
parents: 372
diff changeset
3 # Copyright (C) 2007-2011 Edgewall Software
3
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
4 # All rights reserved.
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
5 #
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
6 # This software is licensed as described in the file COPYING, which
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
7 # you should have received as part of this distribution. The terms
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
8 # are also available at http://babel.edgewall.org/wiki/License.
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
9 #
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
10 # This software consists of voluntary contributions made by many
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
11 # individuals. For the exact contribution history, see the revision
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
12 # history and logs, available at http://babel.edgewall.org/log/.
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
13
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
14 import unittest
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
15
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
16 def suite():
337
662d332c0a2b More preparation for msgctxt support (#54).
cmlenz
parents: 162
diff changeset
17 from babel.messages.tests import catalog, extract, frontend, mofile, \
372
d1a9c618d2d5 We no longer neglect `catalog.plurals`. Added tests for it. Fixes #120.
palgarvio
parents: 337
diff changeset
18 plurals, pofile, checkers
3
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
19 suite = unittest.TestSuite()
58
068952b4d4c0 Add actual data structures for handling message catalogs, so that more code can be reused here between the frontends.
cmlenz
parents: 56
diff changeset
20 suite.addTest(catalog.suite())
3
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
21 suite.addTest(extract.suite())
14
29ef15a6fd75 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 3
diff changeset
22 suite.addTest(frontend.suite())
162
661cb602781d Add MO file generation. Closes #21.
cmlenz
parents: 58
diff changeset
23 suite.addTest(mofile.suite())
337
662d332c0a2b More preparation for msgctxt support (#54).
cmlenz
parents: 162
diff changeset
24 suite.addTest(plurals.suite())
3
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
25 suite.addTest(pofile.suite())
372
d1a9c618d2d5 We no longer neglect `catalog.plurals`. Added tests for it. Fixes #120.
palgarvio
parents: 337
diff changeset
26 suite.addTest(checkers.suite())
3
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
27 return suite
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
28
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
29 if __name__ == '__main__':
e9eaddab598e Import of initial code base.
cmlenz
parents:
diff changeset
30 unittest.main(defaultTest='suite')
Copyright (C) 2012-2017 Edgewall Software