

def test_queue_wm_sender(app, auth, client, mocker):
    get_queue = mocker.patch('redwind.plugins.wm_sender.get_queue')
    client.post('/save_new', data={
        'post_type': 'note',
        'content': 'Some content',
    })
    post = Post.query.first()
    get_queue().enqueue.assert_called_with(wm_sender.do_send_webmentions, post.id, app.config)

dataset/ETHPy150Open kylewm/redwind/tests/wm_sender_test.py test_queue_wm_sender/original