Skip to content

Commit

Permalink
Switch to Django 2.0.13, Take 4
Browse files Browse the repository at this point in the history
  • Loading branch information
znick committed Mar 31, 2024
1 parent ac54459 commit e2175d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion anytask/users/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import re

from django.contrib.auth.models import User
from django.test import TestCase
from django.test import TestCase, override_settings
from django.contrib.sites.models import Site

from schools.models import School
Expand All @@ -15,6 +15,7 @@
from django.urls import reverse


@override_settings(LANGUAGE_CODE='ru-RU', LANGUAGES=(('ru', 'Russian'),))
class UserLoginTest(TestCase):
RESET_LINK_RE = re.compile(r'http://localhost(.*)$', re.MULTILINE)

Expand Down Expand Up @@ -141,6 +142,7 @@ def test_register_user__login_already_exists(self):
self.assertEqual(response.status_code, 200)
self.assertFormError(response, 'form', 'username', u"Пользователь с таким именем уже существует.")

@override_settings(LANGUAGE_CODE='en-EN', LANGUAGES=(('en', 'English'),))
def test_register_user__email_already_exists(self):
client = self.client

Expand Down

0 comments on commit e2175d5

Please sign in to comment.