diff options
| author | jvoisin | 2018-12-16 21:41:23 +0100 |
|---|---|---|
| committer | jvoisin | 2018-12-16 21:41:23 +0100 |
| commit | 5ce3db7e82b47ca3865f3909582309e9a0b44e2e (patch) | |
| tree | ae110c15064eeb3749d75fcd28d1149fbdd0be09 /tests.py | |
| parent | c289edb916502b13e9732192bff6071afe73ad09 (diff) | |
Bump coverage
Diffstat (limited to 'tests.py')
| -rw-r--r-- | tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -47,6 +47,15 @@ class FlaskrTestCase(unittest.TestCase): | |||
| 47 | rv.data) | 47 | rv.data) |
| 48 | self.assertEqual(rv.status_code, 200) | 48 | self.assertEqual(rv.status_code, 200) |
| 49 | 49 | ||
| 50 | def test_get_upload_no_file_name(self): | ||
| 51 | rv = self.app.post('/', | ||
| 52 | data=dict( | ||
| 53 | file=(io.BytesIO(b"aaa"), ''), | ||
| 54 | ), follow_redirects=True) | ||
| 55 | self.assertIn(b'No file part', rv.data) | ||
| 56 | self.assertEqual(rv.status_code, 200) | ||
| 57 | |||
| 58 | |||
| 50 | def test_get_upload_harmless_file(self): | 59 | def test_get_upload_harmless_file(self): |
| 51 | rv = self.app.post('/', | 60 | rv = self.app.post('/', |
| 52 | data=dict( | 61 | data=dict( |
