test_jobs.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:arthur 作者: grimoirelab 项目源码 文件源码
def test_job_caching_not_supported(self):
        """Check if it fails when caching is not supported"""

        args = {
            'uri': 'http://example.com/',
            'gitpath': os.path.join(self.dir, 'data/git_log.txt')
        }

        q = rq.Queue('queue', async=False)

        with self.assertRaises(AttributeError):
            job = q.enqueue(execute_perceval_job,
                            backend='git', backend_args=args,
                            qitems='items', task_id='mytask',
                            cache_path=self.tmp_path)

        with self.assertRaises(AttributeError):
            job = q.enqueue(execute_perceval_job,
                            backend='git', backend_args=args,
                            qitems='items', task_id='mytask',
                            fetch_from_cache=True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号