def test_verify_files(self): """Tests if the celery task syncronizes files... it should delete our example file; no actual celery functionality""" self.write_file() g = verify_files(testing=True) self.wait_on_task(g) assert Archive.query.filter_by(file_name = 'file1').first() == None
def hard_check_files(): try: discover_files(immediate=db) verify_files().apply_async(timeout=10) except TimeoutError: pass