Skip to content

Commit 1b42158

Browse files
author
Jesús Espino
committed
Fixing broken tests on texts change
1 parent b8101e9 commit 1b42158

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

testing/tests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_form_invalid_size(self):
5151
self.assertFalse(form.is_valid())
5252
self.assertEqual(len(form.errors), 1)
5353
self.assertEqual(len(form.errors['the_file']), 1)
54-
self.assertEqual(form.errors['the_file'][0], u'Please keep filesize under 10.0 KB. Current filesize 14.2 KB')
54+
self.assertEqual(form.errors['the_file'][0], u'Files of size greater than 10.0 KB are not allowed. Your file is 14.2 KB')
5555

5656

5757
def test_form_invalid_filetype(self):
@@ -62,7 +62,7 @@ def test_form_invalid_filetype(self):
6262
self.assertFalse(form.is_valid())
6363
self.assertEqual(len(form.errors), 1)
6464
self.assertEqual(len(form.errors['the_file']), 1)
65-
self.assertEqual(form.errors['the_file'][0], u'Filetype application/pdf not supported.')
65+
self.assertEqual(form.errors['the_file'][0], u'Files of type application/pdf are not supported.')
6666

6767

6868
def test_form_invalid_filetype_and_size(self):
@@ -73,7 +73,7 @@ def test_form_invalid_filetype_and_size(self):
7373
self.assertFalse(form.is_valid())
7474
self.assertEqual(len(form.errors), 1)
7575
self.assertEqual(len(form.errors['the_file']), 1)
76-
self.assertEqual(form.errors['the_file'][0], u'Filetype application/pdf not supported.')
76+
self.assertEqual(form.errors['the_file'][0], u'Files of type application/pdf are not supported.')
7777

7878

7979
def test_form_fake_filetype(self):
@@ -84,7 +84,7 @@ def test_form_fake_filetype(self):
8484
self.assertFalse(form.is_valid())
8585
self.assertEqual(len(form.errors), 1)
8686
self.assertEqual(len(form.errors['the_file']), 1)
87-
self.assertEqual(form.errors['the_file'][0], u'Filetype application/pdf not supported.')
87+
self.assertEqual(form.errors['the_file'][0], u'Files of type application/pdf are not supported.')
8888

8989

9090
def test_form_no_validate(self):
@@ -269,7 +269,7 @@ def test_form_quota_exceeded(self):
269269
self.assertEqual(len(form.errors), 1)
270270
self.assertEqual(len(form.errors['the_file']), 1)
271271
self.assertEqual(form.errors['the_file'][0],
272-
u'Please keep the total uploaded files under 9.8 KB. With this file, the total would be 16.3 KB')
272+
u'Please keep the total uploaded files under 9.8 KB. With this file, the total would be 16.3 KB.')
273273

274274
element.the_file.delete()
275275
element.delete()

0 commit comments

Comments
 (0)