mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Update exception handler test in line with deprecations
This commit is contained in:
parent
c203ca4c64
commit
4fd971e3e5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user