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

 

 

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) ==True

def f():
return 3
def test_two():
assert f()==4

 

 



posted on 2019-09-21 14:53  barton123  阅读(372)  评论(0编辑  收藏  举报

导航