test_utils.py 文件源码

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

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

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

    c, s, a = ModelStub.my_model_method(session, 1)

    assert c is ModelStub
    assert s is session
    assert a == 1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号