Commit 06203194d7140d79a1cf1afe41d5b320cbf98e56
Committed by
Sergio Oliveira
1 parent
5864dc56
Exists in
master
and in
39 other branches
Applyied flake8 in test_user.py
Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> Signed-off-by: Carolina Ramalho <carol15022@hotmail.com>
Showing
1 changed file
with
3 additions
and
4 deletions
Show diff stats
colab/accounts/tests/test_user.py
@@ -36,8 +36,7 @@ class UserTest(TestCase): | @@ -36,8 +36,7 @@ class UserTest(TestCase): | ||
36 | password='123colab4') | 36 | password='123colab4') |
37 | 37 | ||
38 | def validate_mandatory_fields(self, expected_first_name, | 38 | def validate_mandatory_fields(self, expected_first_name, |
39 | - expected_last_name, | ||
40 | - first_name, last_name): | 39 | + expected_last_name, first_name, last_name): |
41 | data = {'first_name': first_name, | 40 | data = {'first_name': first_name, |
42 | 'last_name': last_name} | 41 | 'last_name': last_name} |
43 | self.client.post('/account/usertestcolab/edit', data) | 42 | self.client.post('/account/usertestcolab/edit', data) |
@@ -103,8 +102,8 @@ class UserTest(TestCase): | @@ -103,8 +102,8 @@ class UserTest(TestCase): | ||
103 | 102 | ||
104 | def test_update_user_mandatory_max_leght_overflow(self): | 103 | def test_update_user_mandatory_max_leght_overflow(self): |
105 | self.authenticate_user() | 104 | self.authenticate_user() |
106 | - self.validate_mandatory_fields('USERtestCoLaB', 'COLAB', 'a' * 31, | ||
107 | - 'a' * 31) | 105 | + self.validate_mandatory_fields('USERtestCoLaB', 'COLAB', |
106 | + 'a'*31, 'a'*31) | ||
108 | self.user.delete() | 107 | self.user.delete() |
109 | 108 | ||
110 | def test_update_user_mandatory_invalid_empty_field(self): | 109 | def test_update_user_mandatory_invalid_empty_field(self): |