pytest-extraneous-scope-function (PT003)
源自 flake8-pytest-style linter。
修复总是可用的。
作用
检查带有 scope="function"
的 pytest.fixture
调用。
为什么这不好?
scope="function"
可以省略,因为它是默认值。
示例
建议改为
源自 flake8-pytest-style linter。
修复总是可用的。
检查带有 scope="function"
的 pytest.fixture
调用。
scope="function"
可以省略,因为它是默认值。
建议改为