tests.py 文件源码

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

项目:instanotifier 作者: AlexanderKaluzhny 项目源码 文件源码
def test_consume_feed_task_chaining():
    """ Consume test rss feed through connected fetcher and parser and publisher tasks.
        Make sure the parser have created the RssNotification instances, and
        all the messages were sent.

        It should be run from under the django shell/script.
    """
    delete_test_rss_feed_notifications()

    task_flow = chain(fetch.s(), parse.s(), publish.s())
    task_flow.delay(_rss_file_path()).get()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号