第一部分 快速入门
第二部分 测试函数
第三部分 固件
在 pytest 中,assert 是编写测试的最基础工具。如:
assert
assert a == b assert a <= b
具体的 assert 语法参考 The assert statement 。