From 75e1c0201998998fc5cf2d60102d1dbcb4e4327a Mon Sep 17 00:00:00 2001 From: Ghosts6 Date: Sat, 19 Oct 2024 19:54:10 +0100 Subject: [PATCH] Fix formatting and resolve pre-commit errors --- tests/test_fields.py | 5 +++-- tests/test_status.py | 3 ++- tests/test_validators.py | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/test_fields.py b/tests/test_fields.py index 7ac4a0857..15925a719 100644 --- a/tests/test_fields.py +++ b/tests/test_fields.py @@ -25,8 +25,9 @@ from django.utils.timezone import activate, deactivate, override import rest_framework from rest_framework import exceptions, serializers from rest_framework.fields import ( - AlphabeticFieldValidator, AlphanumericFieldValidator, BuiltinSignatureError, CustomLengthValidator, DjangoImageField, SkipField, empty, - is_simple_callable + AlphabeticFieldValidator, AlphanumericFieldValidator, + BuiltinSignatureError, CustomLengthValidator, DjangoImageField, SkipField, + empty, is_simple_callable ) from tests.models import UUIDForeignKeyTarget diff --git a/tests/test_status.py b/tests/test_status.py index 4d7aeb90a..7fbe1b522 100644 --- a/tests/test_status.py +++ b/tests/test_status.py @@ -1,7 +1,8 @@ from django.test import TestCase from rest_framework.status import ( - is_client_error, is_informational, is_redirect, is_server_error, is_success + is_client_error, is_informational, is_redirect, is_server_error, + is_success ) diff --git a/tests/test_validators.py b/tests/test_validators.py index 4bb8658d5..5ea0542c4 100644 --- a/tests/test_validators.py +++ b/tests/test_validators.py @@ -10,7 +10,8 @@ from django.test import TestCase from rest_framework import serializers from rest_framework.exceptions import ValidationError from rest_framework.validators import ( - BaseUniqueForValidator, UniqueTogetherValidator, UniqueValidator, qs_exists + BaseUniqueForValidator, UniqueTogetherValidator, UniqueValidator, + qs_exists )