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

@ -42,6 +42,7 @@ class Mat2WebTestCase(unittest.TestCase):
randint_mock.return_value = 0
file_removal_scheduler.run_file_removal_job(self.app.config['UPLOAD_FOLDER'])
self.assertTrue(path.exists(path.join(self.upload_folder, filename)))
environ['MAT2_MAX_FILE_AGE_FOR_REMOVAL'] = str(15 * 60)
def tearDown(self):
shutil.rmtree(self.upload_folder)