Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
znick committed Apr 4, 2024
1 parent b6c07a4 commit 8ae6fcd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions anytask/users/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test_login_user__bad_email(self):

def test_register_user(self):
client = self.client

form_data = {"username": u"test_user1",
"email": u"[email protected]",
"first_name": u"Иван",
Expand All @@ -130,13 +130,11 @@ def test_register_user(self):
self.assertEqual(user.last_name, "Иванов")

self.assertTrue(client.login(username="test_user1", password="qwer1"))

user_profile = UserProfile.objects.get(user=user)

self.assertEqual(user_profile.show_email, True)

user_profile = user.profile
self.assertEqual(user_profile.show_email, True)
self.assertEqual(user_profile.is_active(), True)

def test_register_user__login_already_exists(self):
client = self.client

Expand Down

0 comments on commit 8ae6fcd

Please sign in to comment.