pytest测试,简单的

import pytest def func(x): return x+1 def test_a(): print("___用例1_test_a____") result = func(2) assert result == 3 def test_b(): print("___用例2_test_b____") result = func(4)
相关文章
相关标签/搜索