Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Fixed Django version comparisons in test_serializers. #398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_invalid_credentials(self):
self.assertEqual(serializer.errors, expected_error)

@unittest.skipIf(
django.VERSION[1] >= 10,
django.VERSION >= (1, 10),
reason='The ModelBackend does not permit login when is_active is False.')
def test_disabled_user(self):
self.user.is_active = False
Expand All @@ -88,7 +88,7 @@ def test_disabled_user(self):
self.assertEqual(serializer.errors, expected_error)

@unittest.skipUnless(
django.VERSION[1] >= 10,
django.VERSION >= (1, 10),
reason='The AllowAllUsersModelBackend permits login when is_active is False.')
@override_settings(AUTHENTICATION_BACKENDS=[
'django.contrib.auth.backends.AllowAllUsersModelBackend'])
Expand Down