单项选择题
如何在PyTest中跳过测试用例()
A.使用pytest.ignore(reason)装饰器
B.使用pytest.skip(reason)装饰器
C.使用pytest.fail(reason)装饰器
D.使用pytest.pass(reason)装饰器
点击查看答案&解析
相关考题
-
单项选择题
PyTest中如何运行单个测试模块()
A.pytest test_module.py
B.pytest test_module
C.pytest -m test_module
D.pytest -k test_module -
单项选择题
下面哪个是PyTest中用于判断是否不抛出异常的断言()
A.assertRaises
B.assertDoesNotRaise
C.assertWarns
D.assertDoesNotWarn -
单项选择题
在PyTest中,使用assert关键字进行断言时,当表达式为False时,会抛出哪种异常()
A.AssertionError
B.ValueError
C.TypeError
D.SyntaxError
