pytest-fixture-positional-args (PT002)
源自 flake8-pytest-style linter。
作用
检查带有位置参数的 pytest.fixture
调用。
为什么这不好?
为了清晰和一致性,建议使用关键字参数来指定 fixture 配置。
示例
建议改为
源自 flake8-pytest-style linter。
检查带有位置参数的 pytest.fixture
调用。
为了清晰和一致性,建议使用关键字参数来指定 fixture 配置。
建议改为