additional error handling

This commit is contained in:
Jan Friedli 2020-03-31 21:18:39 +02:00
parent b7cd80d155
commit d75515179f
No known key found for this signature in database
GPG Key ID: F945FA2FCA30549D

View File

@ -91,7 +91,7 @@ class Mat2WebTestCase(TestCase):
data=dict( data=dict(
file=(io.BytesIO(zip_file_bytes), 'test.zip'), file=(io.BytesIO(zip_file_bytes), 'test.zip'),
), follow_redirects=True) ), follow_redirects=True)
self.assertIn(b'Unable to clean',rv.data) self.assertIn(b'Unable to clean', rv.data)
self.assertEqual(rv.status_code, 200) self.assertEqual(rv.status_code, 200)
def test_get_upload_no_file_name(self): def test_get_upload_no_file_name(self):