Commit 5274c42ff2027305081aecee692f4887be4678cb
1 parent
f89a35b2
Exists in
master
and in
5 other branches
Changed error messages in code to English [Issue: #7]
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
core/tests.py
... | ... | @@ -89,7 +89,7 @@ class RegisterUserTestCase(TestCase): |
89 | 89 | } |
90 | 90 | |
91 | 91 | response = self.client.post(self.url, data) |
92 | - self.assertFormError(response, 'form', 'email', 'Insira um endereço de email válido.') | |
92 | + self.assertFormError(response, 'form', 'email', 'Enter a valid email address.') | |
93 | 93 | |
94 | 94 | data = { |
95 | 95 | 'username': '', |
... | ... | @@ -102,7 +102,7 @@ class RegisterUserTestCase(TestCase): |
102 | 102 | 'gender': 'F', |
103 | 103 | } |
104 | 104 | response = self.client.post(self.url, data) |
105 | - self.assertFormError(response, 'form', 'username', 'Este campo é obrigatório.') | |
105 | + self.assertFormError(response, 'form', 'username', 'This field is required.') | |
106 | 106 | |
107 | 107 | class RememberPasswordTestCase(TestCase): |
108 | 108 | |
... | ... | @@ -194,7 +194,7 @@ class UpdateUserTestCase(TestCase): |
194 | 194 | 'gender': 'F', |
195 | 195 | } |
196 | 196 | response = self.client.post(self.url, data) |
197 | - self.assertFormError(response, 'form', 'username', 'Este campo é obrigatório.') | |
197 | + self.assertFormError(response, 'form', 'username', 'This field is required.') | |
198 | 198 | |
199 | 199 | |
200 | 200 | class DeleteUserTestCase(TestCase): | ... | ... |