

@pytest.fixture
def source_post(app, db):
    post = Post('note')
    post.content = 'This note links to [wikipedia](https://en.wikipedia.org/wiki/Webmention)'
    app.content_html = 'This note links to <a href="https://en.wikipedia.org/wiki/Webmention">wikipedia</a>'
    post.path = '2014/11/wm-sender-test'
    db.session.add(post)
    db.session.commit()
    return post

dataset/ETHPy150Open kylewm/redwind/tests/wm_sender_test.py source_post/VarMisuse@30/59 `post`->`app`