Browse Source

add fixme for exception_handling test

Guénaël Muller 6 years ago
parent
commit
8dded6a0f0
1 changed files with 10 additions and 0 deletions
  1. 10 0
      tests/func/test_exception_handling.py

+ 10 - 0
tests/func/test_exception_handling.py View File

21
             raise ZeroDivisionError('An exception message')
21
             raise ZeroDivisionError('An exception message')
22
 
22
 
23
         app.route('/my-view', method='GET', callback=my_view)
23
         app.route('/my-view', method='GET', callback=my_view)
24
+        # FIXME - G.M - 17-05-2018 - Verify if:
25
+        # - other view that work/raise an other exception do not go
26
+        # into this code for handle this exceptions.
27
+        # - response come clearly from there, not from web framework:
28
+        #  Check not only http code, but also body.
24
         context.handle_exception(ZeroDivisionError, http_code=400)
29
         context.handle_exception(ZeroDivisionError, http_code=400)
25
 
30
 
26
         test_app = TestApp(app)
31
         test_app = TestApp(app)
44
         configurator.add_route('my_view','/my-view', request_method='GET')
49
         configurator.add_route('my_view','/my-view', request_method='GET')
45
         configurator.add_view(my_view, route_name='my_view', renderer='json')
50
         configurator.add_view(my_view, route_name='my_view', renderer='json')
46
 
51
 
52
+        # FIXME - G.M - 17-05-2018 - Verify if:
53
+        # - other view that work/raise an other exception do not go
54
+        # into this code for handle this exceptions.
55
+        # - response come clearly from there, not from web framework:
56
+        #  Check not only http code, but also body.
47
         context.handle_exception(ZeroDivisionError, http_code=400)
57
         context.handle_exception(ZeroDivisionError, http_code=400)
48
 
58
 
49
         app = configurator.make_wsgi_app()
59
         app = configurator.make_wsgi_app()