Skip to content

Commit

Permalink
[flake8-pytest-style] Add fix safety documentation for `duplicate-p…
Browse files Browse the repository at this point in the history
…arameterize-test-cases` (#9678)

See:
#8482 (comment).
  • Loading branch information
charliermarsh authored and zanieb committed Jan 29, 2024
1 parent 45b56d1 commit 0b90e93
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0b90e93

Please sign in to comment.