示例#1
0
	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
示例#2
0
文件: run.py 项目: jwickens/filesoup
def hard_check_files():
    try:
        discover_files(immediate=db)
        verify_files().apply_async(timeout=10)
    except TimeoutError:
        pass