[test] missing main stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 11 Oct 2010 10:14:22 +0200
branchstable
changeset 6433 95c40961df21
parent 6432 30bde2b7fea2
child 6434 d99b742a9c49
[test] missing main
web/test/unittest_facet.py
web/test/unittest_reledit.py
--- a/web/test/unittest_facet.py	Mon Oct 11 10:14:11 2010 +0200
+++ b/web/test/unittest_facet.py	Mon Oct 11 10:14:22 2010 +0200
@@ -119,3 +119,8 @@
         # is not in real life)
         self.assertEqual(f.rqlst.as_string(),
                           "DISTINCT Any  WHERE X is CWUser, X login 'admin'")
+
+
+if __name__ == '__main__':
+    from logilab.common.testlib import unittest_main
+    unittest_main()
--- a/web/test/unittest_reledit.py	Mon Oct 11 10:14:11 2010 +0200
+++ b/web/test/unittest_reledit.py	Mon Oct 11 10:14:22 2010 +0200
@@ -218,3 +218,8 @@
                                   rtype)
         reledit_ctrl.clear()
         reledit_ctrl._tagdefs.update(old_rctl)
+
+
+if __name__ == '__main__':
+    from logilab.common.testlib import unittest_main
+    unittest_main()