我有以下代码片段:import logging
mylogger = logging.getLoggerInside Test 2') mylogger.info(' About to start the tests ')
pytest.main(args=[os.path.abspath(__file
例如:def test_one(some_fixture):def test_two(some_fixture):If I run pytest with --collectonly -m "myplatform and (not stress)“作为一个实验,我看到我可以解决这个问题。fixture中有查看标记的代码,但我们不会以任何方式更改pytest参数。