原文:https://docs.pytest.org/en/stable/how-to/assert.html
1.断言 assert
最简单的断言来一个
# content of test_assert1.py def f(): return 3 def test_function(): assert f() == 4
2.断言指定信息:
assert a % 2 == 0, "value was odd, should be even"
3.断言重写:
待整理·····
4.app自动化用断言关键字库整理
待整理···