pytest 5 种核心测试场景的 极简示例
摘要:
pytest 5 种核心测试场景的 极简示例(含代码+执行命令): 1. 全量测试(默认) 核心逻辑:执行所有符合命名规则的用例(test_*.py/test_* 函数) 示例代码(test_all.py) def test_add(): assert 1 + 2 == 3 def test_mul 阅读全文
posted @ 2025-11-26 15:21
烫烫烫烫热
阅读(5)
评论(0)
推荐(0)
浙公网安备 33010602011771号