def test_check_db_for_missing_notifications_assembles_resources(self, run_check):
# Can't import until after config is loaded:
from dallinger.heroku.clock import check_db_for_missing_notifications
with mock.patch.multiple('dallinger.heroku.clock',
run_check=mock.DEFAULT,
MTurkConnection=mock.DEFAULT) as mocks:
mocks['MTurkConnection'].return_value = 'fake connection'
check_db_for_missing_notifications()
mocks['run_check'].assert_called()
评论列表
文章目录