mirror of
https://0xacab.org/jvoisin/mat2-web.git
synced 2025-05-13 19:52:22 -04:00
added new property which indicates the remaining download time in secs
This commit is contained in:
parent
e75d9a7de5
commit
83618ff529
7 changed files with 18 additions and 5 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue