You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/ruff_linter/src/rules/flake8_pytest_style/rules/parametrize.rs
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -226,6 +226,10 @@ impl Violation for PytestParametrizeValuesWrongType {
226
226
/// ...
227
227
/// ```
228
228
///
229
+
/// ## Fix safety
230
+
/// This rule's fix is marked as unsafe, as tests that rely on mutable global
231
+
/// state may be affected by removing duplicate test cases.
232
+
///
229
233
/// ## References
230
234
/// - [`pytest` documentation: How to parametrize fixtures and test functions](https://docs.pytest.org/en/latest/how-to/parametrize.html#pytest-mark-parametrize)
0 commit comments