--- 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()