【接口自动化测试】参会化

import pytest


@pytest.mark.parametrize("test_input, expected", [
["1+1", 2],
["2*3", 6],
])
def test_eval(test_input, expected):
assert eval(test_input) == expected
posted @ 2023-02-06 18:25  Jenny测试开发  阅读(17)  评论(0编辑  收藏  举报