pytest-use-fixtures-without-parameters (PT026)
源自 flake8-pytest-style linter。
修复总是可用的。
作用
检查没有传递任何参数的@pytest.mark.usefixtures()
装饰器。
为什么这不好?
没有传递任何参数的@pytest.mark.usefixtures()
装饰器是无用的,应该被删除。
示例
建议改为
源自 flake8-pytest-style linter。
修复总是可用的。
检查没有传递任何参数的@pytest.mark.usefixtures()
装饰器。
没有传递任何参数的@pytest.mark.usefixtures()
装饰器是无用的,应该被删除。
建议改为