equal
deleted
inserted
replaced
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() |