pyramid_cubicweb/tests/test_rest_api.py
changeset 11611 9d2bb6bdb5c8
parent 11603 c7bfeb7b0d67
--- a/pyramid_cubicweb/tests/test_rest_api.py	Tue Mar 22 13:58:38 2016 +0100
+++ b/pyramid_cubicweb/tests/test_rest_api.py	Tue Mar 22 14:01:44 2016 +0100
@@ -1,11 +1,11 @@
 from __future__ import absolute_import
 
-from . import PyramidCWTest
-
 from pyramid_cubicweb.rest_api import EntityResource
 from pyramid_cubicweb.core import CubicWebPyramidRequest
 from pyramid.view import view_config
 
+from pyramid_cubicweb.tests import PyramidCWTest
+
 
 class RestApiTest(PyramidCWTest):
     def includeme(self, config):
@@ -52,3 +52,8 @@
 
 def includeme(config):
     config.scan(__name__)
+
+
+if __name__ == '__main__':
+    from unittest import main
+    main()