pyramid_cubicweb/tests/test_rest_api.py
changeset 11611 9d2bb6bdb5c8
parent 11603 c7bfeb7b0d67
equal deleted inserted replaced
11610:4cac84a8bf5f 11611:9d2bb6bdb5c8
     1 from __future__ import absolute_import
     1 from __future__ import absolute_import
     2 
       
     3 from . import PyramidCWTest
       
     4 
     2 
     5 from pyramid_cubicweb.rest_api import EntityResource
     3 from pyramid_cubicweb.rest_api import EntityResource
     6 from pyramid_cubicweb.core import CubicWebPyramidRequest
     4 from pyramid_cubicweb.core import CubicWebPyramidRequest
     7 from pyramid.view import view_config
     5 from pyramid.view import view_config
       
     6 
       
     7 from pyramid_cubicweb.tests import PyramidCWTest
     8 
     8 
     9 
     9 
    10 class RestApiTest(PyramidCWTest):
    10 class RestApiTest(PyramidCWTest):
    11     def includeme(self, config):
    11     def includeme(self, config):
    12         config.include('pyramid_cubicweb.rest_api')
    12         config.include('pyramid_cubicweb.rest_api')
    50     return request.response
    50     return request.response
    51 
    51 
    52 
    52 
    53 def includeme(config):
    53 def includeme(config):
    54     config.scan(__name__)
    54     config.scan(__name__)
       
    55 
       
    56 
       
    57 if __name__ == '__main__':
       
    58     from unittest import main
       
    59     main()