pytest的断言、跳过、运行的按需要处理

匿名 (未验证) 提交于 2019-12-03 00:11:01

 

 

def test_one():    assert 1==1    assert 1!=2    assert {'name':'linda','age':19}=={'name':'linda','age':190}    assert 'hello' in 'helloworld'    age=35    assert 20<age<80    assert (1<2) ==Truedef f():    return 3def test_two():    assert f()==4

 

 

 
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!