[PATCH 2 of 5 i18nfield] Fix test

noe.gaumont at logilab.fr noe.gaumont at logilab.fr
Mon Mar 16 11:59:55 CET 2020


# HG changeset patch
# User Noe Gaumont <ngaumont at logilab.fr>
# Date 1584355800 -3600
#      Mon Mar 16 11:50:00 2020 +0100
# Node ID eb927e13444bec5b5ed243e2d23ad887bf122c39
# Parent  2006b8bbebac81a2e884ecea4f267dc7ee779180
# Available At https://hg.logilab.org/review/cubes/i18nfield
#              hg pull https://hg.logilab.org/review/cubes/i18nfield -r eb927e13444b
Fix test

diff --git a/test/test_automaticWebTest.py b/test/test_automaticWebTest.py
--- a/test/test_automaticWebTest.py
+++ b/test/test_automaticWebTest.py
@@ -18,10 +18,11 @@
 
 """cubicweb-i18nfield automatic tests"""
 
-from cubicweb.devtools.testlib import AutomaticWebTest
+import unittest
+from cubicweb.devtools.testlib import CubicWebTC
 
 
-class AutomaticWebTest(AutomaticWebTest):
+class AutomaticWebTest(CubicWebTC):
     '''provides `to_test_etypes` and/or `list_startup_views` implementation
     to limit test scope
     '''
@@ -37,5 +38,4 @@ class AutomaticWebTest(AutomaticWebTest)
 
 
 if __name__ == '__main__':
-    from logilab.common.testlib import unittest_main
-    unittest_main()
+    unittest.main()




More information about the cubicweb-devel mailing list