https://github.com/tongtong95/lg_pytest_course
【疑问】
# 特殊值用例—不懂,为什么会出来aaa的结果
@pytest.mark.parametrize(‘a, b, c’, [
[‘a’, 3, ‘aaa’],
])
def test_mul2(self, a, b, c):
assert self.calc.mul(a, b) == c
https://github.com/tongtong95/lg_pytest_course
【疑问】
# 特殊值用例—不懂,为什么会出来aaa的结果
@pytest.mark.parametrize(‘a, b, c’, [
[‘a’, 3, ‘aaa’],
])
def test_mul2(self, a, b, c):
assert self.calc.mul(a, b) == c
pytest作业:
https://github.com/RamonSong/HogwartsLagou_04/tree/master/personalhomework_pytest02
测试报告截图:
https://github.com/ziloukd/hogwarts_lwy/tree/master/test_pytest