编写断言#. 使用 assert 编写断言#. pytest 允许你使用 python 标准的 assert 表达式写断言;. 例如: # src/chapter-3/test_assert1.py def func(x): return x + 1 ...
確定! 回上一頁