mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-13 16:54:47 +03:00
Fix flake8 violations: remove extra blank lines and trailing whitespace
This commit is contained in:
parent
705fc2b465
commit
15a21641b0
|
@ -50,8 +50,6 @@ class AuthTokenTests(TestCase):
|
|||
self.user.save()
|
||||
assert AuthTokenSerializer(data=data).is_valid()
|
||||
|
||||
|
||||
|
||||
def test_token_creation_collision_raises_integrity_error(self):
|
||||
"""
|
||||
Verify that creating a token with an existing key raises IntegrityError.
|
||||
|
@ -71,7 +69,7 @@ class AuthTokenTests(TestCase):
|
|||
"""
|
||||
# Create a new user for this test to avoid conflicts with setUp token
|
||||
user2 = User.objects.create_user('test_user2', 'test2@example.com', 'password')
|
||||
|
||||
|
||||
# Create a token without a key - it should generate one automatically
|
||||
token = Token(user=user2)
|
||||
token.key = "" # Explicitly clear the key
|
||||
|
|
Loading…
Reference in New Issue
Block a user