[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:
Charlie Marsh
2024-01-29 09:33:22 -08:00
committed by GitHub
parent ad2cfa3dba
commit 50122d2308

View File

@@ -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]