diff --git a/runtests.py b/runtests.py index 968c344f8..19513cdbf 100755 --- a/runtests.py +++ b/runtests.py @@ -114,4 +114,4 @@ if __name__ == "__main__": exit_on_failure(flake8_main(FLAKE8_ARGS)) if run_isort: - exit_on_failure(isort_main(ISORT_ARGS)) \ No newline at end of file + exit_on_failure(isort_main(ISORT_ARGS)) diff --git a/setup.py b/setup.py index 379034b06..1eb7b19e9 100755 --- a/setup.py +++ b/setup.py @@ -110,4 +110,4 @@ setup( # Doing so helps ensure your question is helpful to other users. # Queries directly to my email are likely to receive a canned response. # -# Many thanks for your understanding. \ No newline at end of file +# Many thanks for your understanding. diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 182e9448d..8a1c808e4 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -3,8 +3,8 @@ from django.utils import translation from django.utils.translation import gettext_lazy as _ from rest_framework.exceptions import ( - APIException, ErrorDetail, Throttled, _get_error_details, bad_request, - server_error, ValidationError + APIException, ErrorDetail, Throttled, ValidationError, _get_error_details, + bad_request, server_error ) @@ -73,10 +73,8 @@ class ErrorDetailTests(TestCase): assert ErrorDetail('msg1', 'code') != 'msg2' def test_repr(self): - assert repr(ErrorDetail('msg1')) == \ - 'ErrorDetail(string={!r}, code=None)'.format('msg1') - assert repr(ErrorDetail('msg1', 'code')) == \ - 'ErrorDetail(string={!r}, code={!r})'.format('msg1', 'code') + assert repr(ErrorDetail('msg1')) == 'ErrorDetail(string={!r}, code=None)'.format('msg1') + assert repr(ErrorDetail('msg1', 'code')) == 'ErrorDetail(string={!r}, code={!r})'.format('msg1', 'code') def test_str(self): assert str(ErrorDetail('msg1')) == 'msg1'