[flake8-pytest-style] Add fix safety documentation for duplicate-parameterize-test-cases (#9678)
See: https://github.com/astral-sh/ruff/issues/8482#issuecomment-1859299411.
This commit is contained in:
@@ -226,6 +226,10 @@ impl Violation for PytestParametrizeValuesWrongType {
|
||||
/// ...
|
||||
/// ```
|
||||
///
|
||||
/// ## Fix safety
|
||||
/// This rule's fix is marked as unsafe, as tests that rely on mutable global
|
||||
/// state may be affected by removing duplicate test cases.
|
||||
///
|
||||
/// ## References
|
||||
/// - [`pytest` documentation: How to parametrize fixtures and test functions](https://docs.pytest.org/en/latest/how-to/parametrize.html#pytest-mark-parametrize)
|
||||
#[violation]
|
||||
|
||||
Reference in New Issue
Block a user