def test_is_time_to_run_with_already_done_this_hour(self):
check_time = datetime.datetime(
year=2016, month=11, day=7, hour=11,
minute=30, second=0, microsecond=0)
PreHourlyProcessorUtil.get_data_provider().set_last_processed(
date_time=check_time)
self.assertFalse(PreHourlyProcessorUtil.is_time_to_run(check_time))
test_is_time_to_run.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录