有没有办法使用 assertTrue() 或 assertFalse() 就像pytest 中用于python 单元测试的函数一样? 我有一个返回元素列表的函数。如果列表为空,则测试需要通过断言失败。
確定! 回上一頁