相关考题
-
单项选择题
如何在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
