pytest 只需要用assert來斷言就行,相對更簡單而便捷 assert xx :判斷 xx 為真 assert not xx :判斷 xx 不為真 assert a in b :判斷 b 包含 a ...
確定! 回上一頁