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 | from colab.accounts.models import User |
8 | 8 | from colab.accounts import forms as accounts_forms |
9 | 9 | from django.test import TestCase, Client |
10 | -from colab.accounts.views import UserProfileUpdateView | |
11 | 10 | |
12 | 11 | |
13 | 12 | class UserTest(TestCase): |
... | ... | @@ -382,25 +381,25 @@ class UserTest(TestCase): |
382 | 381 | |
383 | 382 | def test_signup_with_post_not_success(self): |
384 | 383 | data_user = { |
385 | - 'username': 'username', | |
386 | - 'password1': 'safepassword', | |
387 | - 'password2': 'safepassword', | |
384 | + 'username': 'username', | |
385 | + 'password1': 'safepassword', | |
386 | + 'password2': 'safepassword', | |
388 | 387 | } |
389 | 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 | 390 | after = User.objects.count() |
392 | 391 | self.assertEqual(before, after) |
393 | 392 | |
394 | 393 | def test_signup_with_post_with_success(self): |
395 | 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 | 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 | 404 | after = User.objects.count() |
406 | 405 | self.assertEqual(before + 1, after) | ... | ... |