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,6 +21,11 @@ class TestExceptionHandling(Base):
21 21
             raise ZeroDivisionError('An exception message')
22 22
 
23 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 29
         context.handle_exception(ZeroDivisionError, http_code=400)
25 30
 
26 31
         test_app = TestApp(app)
@@ -44,6 +49,11 @@ class TestExceptionHandling(Base):
44 49
         configurator.add_route('my_view','/my-view', request_method='GET')
45 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 57
         context.handle_exception(ZeroDivisionError, http_code=400)
48 58
 
49 59
         app = configurator.make_wsgi_app()