[FIX] ir.ui.view missing time libraries in qweb rendering context
[odoo/odoo.git] / openerp / tests / __init__.py
index 142ec03..a741224 100644 (file)
@@ -1,30 +1,49 @@
 # -*- coding: utf-8 -*-
-import unittest2
+"""
+Tests for the OpenERP library.
 
-import test_orm
-import test_ir_sequence
-import test_xmlrpc
-
-# This test suite assumes a database.
-def make_suite():
-    suite = unittest2.TestSuite()
-    suite.addTests(unittest2.TestLoader().loadTestsFromModule(test_ir_sequence))
-    suite.addTests(unittest2.TestLoader().loadTestsFromModule(test_orm))
-    return suite
+This module groups a few sub-modules containing unittest2 test cases.
 
-# This test suite creates a database.
-def make_suite_no_db():
-    suite = unittest2.TestSuite()
-    suite.addTests(unittest2.TestLoader().loadTestsFromModule(test_xmlrpc))
-    return suite
+Tests can be explicitely added to the `fast_suite` or `checks` lists or not.
+See the :ref:`test-framework` section in the :ref:`features` list.
+"""
+import test_acl
+import test_basecase
+import test_db_cursor
+import test_expression
+import test_fields
+import test_ir_filters
+import test_ir_sequence
+import test_mail
+import test_misc
+import test_orm
+import test_osv
+import test_translate
+import test_view_validation
+import test_qweb
+import test_func
+# This need a change in `oe run-tests` to only run fast_suite + checks by default.
+# import test_xmlrpc
 
-# This test suite combines the two above test suites
-# (and thus creates a database).
-def make_complete_suite():
-    suite = unittest2.TestSuite()
-    suite.addTests(unittest2.TestLoader().loadTestsFromModule(test_xmlrpc))
-    suite.addTests(unittest2.TestLoader().loadTestsFromModule(test_ir_sequence))
-    suite.addTests(unittest2.TestLoader().loadTestsFromModule(test_orm))
-    return suite
+fast_suite = [
+    test_ir_sequence,
+    test_ir_filters
+]
 
+checks = [
+    test_acl,
+    test_expression,
+    test_mail,
+    test_db_cursor,
+    test_orm,
+    test_fields,
+    test_basecase,
+    test_view_validation,
+    test_misc,
+    test_osv,
+    test_translate,
+    test_qweb,
+    test_func,
+]
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: