def test_discover_files(self): """Tests if the celery task finds files""" g = discover_files(testing=True) self.wait_on_task(g) assert Archive.query.count() > 2
def test_discover_files_sync(self): """Tests if the celery task finds files, no celery functionality""" g = discover_files(testing=True, immediate=self.db) assert Archive.query.count() > 2
def hard_check_files(): try: discover_files(immediate=db) verify_files().apply_async(timeout=10) except TimeoutError: pass