Update exception handler test in line with deprecations

This commit is contained in:
Tom Christie 2015-07-30 15:42:11 +01:00
parent c203ca4c64
commit 4fd971e3e5

View File

@ -123,7 +123,7 @@ class TestCustomExceptionHandler(TestCase):
def setUp(self):
self.DEFAULT_HANDLER = api_settings.EXCEPTION_HANDLER
def exception_handler(exc):
def exception_handler(exc, request):
return Response('Error!', status=status.HTTP_400_BAD_REQUEST)
api_settings.EXCEPTION_HANDLER = exception_handler