added new property which indicates the remaining download time in secs

This commit is contained in:
Jan Friedli 2020-05-15 14:38:13 +02:00
parent e75d9a7de5
commit 83618ff529
No known key found for this signature in database
GPG key ID: F945FA2FCA30549D
7 changed files with 18 additions and 5 deletions

View file

@ -170,7 +170,7 @@ class Mat2WebTestCase(TestCase):
request = app.get(self.get_context_variable('download_uri'))
self.assertEqual(302, request.status_code)
os.environ['MAT2_MAX_FILE_AGE_FOR_REMOVAL'] = '9999'
os.environ['MAT2_MAX_FILE_AGE_FOR_REMOVAL'] = str(15*60)
def test_info_page(self):
rv = self.client.get('/info')
@ -191,7 +191,6 @@ class Mat2WebTestCase(TestCase):
self.assertIn(b'Invalid Filename', rv.data)
if __name__ == '__main__':
unittest.main()