Commit d2f9859b20a62f3bbfb9a185b926e7c10a4e30e8
Committed by
Matheus de Sousa Faria
1 parent
122d89c3
Exists in
master
and in
4 other branches
Fixing style according standard of flake8
Signed-off-by: Matheus Faria <matheus.sousa.faria@gmail.com> Signed-off-by: TomazMartins <tomaz.r.martins@gmail.com>
Showing
1 changed file
with
11 additions
and
12 deletions
Show diff stats
colab/accounts/tests/test_user.py
| @@ -7,7 +7,6 @@ import mock | @@ -7,7 +7,6 @@ import mock | ||
| 7 | from colab.accounts.models import User | 7 | from colab.accounts.models import User |
| 8 | from colab.accounts import forms as accounts_forms | 8 | from colab.accounts import forms as accounts_forms |
| 9 | from django.test import TestCase, Client | 9 | from django.test import TestCase, Client |
| 10 | -from colab.accounts.views import UserProfileUpdateView | ||
| 11 | 10 | ||
| 12 | 11 | ||
| 13 | class UserTest(TestCase): | 12 | class UserTest(TestCase): |
| @@ -382,25 +381,25 @@ class UserTest(TestCase): | @@ -382,25 +381,25 @@ class UserTest(TestCase): | ||
| 382 | 381 | ||
| 383 | def test_signup_with_post_not_success(self): | 382 | def test_signup_with_post_not_success(self): |
| 384 | data_user = { | 383 | data_user = { |
| 385 | - 'username': 'username', | ||
| 386 | - 'password1': 'safepassword', | ||
| 387 | - 'password2': 'safepassword', | 384 | + 'username': 'username', |
| 385 | + 'password1': 'safepassword', | ||
| 386 | + 'password2': 'safepassword', | ||
| 388 | } | 387 | } |
| 389 | before = User.objects.count() | 388 | before = User.objects.count() |
| 390 | - responses = self.client.post('/account/register', data=data_user) | 389 | + self.client.post('/account/register', data=data_user) |
| 391 | after = User.objects.count() | 390 | after = User.objects.count() |
| 392 | self.assertEqual(before, after) | 391 | self.assertEqual(before, after) |
| 393 | 392 | ||
| 394 | def test_signup_with_post_with_success(self): | 393 | def test_signup_with_post_with_success(self): |
| 395 | data_user = { | 394 | data_user = { |
| 396 | - 'username': 'username', | ||
| 397 | - 'first_name': 'first name', | ||
| 398 | - 'last_name': 'last name', | ||
| 399 | - 'email':'mail@mail.com', | ||
| 400 | - 'password1': 'safepassword', | ||
| 401 | - 'password2': 'safepassword', | 395 | + 'username': 'username', |
| 396 | + 'first_name': 'first name', | ||
| 397 | + 'last_name': 'last name', | ||
| 398 | + 'email': 'mail@mail.com', | ||
| 399 | + 'password1': 'safepassword', | ||
| 400 | + 'password2': 'safepassword', | ||
| 402 | } | 401 | } |
| 403 | before = User.objects.count() | 402 | before = User.objects.count() |
| 404 | - responses = self.client.post('/account/register', data=data_user) | 403 | + self.client.post('/account/register', data=data_user) |
| 405 | after = User.objects.count() | 404 | after = User.objects.count() |
| 406 | self.assertEqual(before + 1, after) | 405 | self.assertEqual(before + 1, after) |