test_utils.py 文件源码

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

项目:windflow 作者: hartym 项目源码 文件源码
def test_rowmethod():
    session = Session()

    with pytest.raises(ValueError) as e:
        ModelStub.my_row_method(0, 1, 2)

    c, s, a = ModelStub.my_row_method(0, session, 1)

    assert c is 0
    assert s is session
    assert a == 1

    i = ModelStub()

    c, s, a = i.my_row_method(session, 2)
    assert c is i
    assert s is session
    assert a == 2
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号