Skip to content

Commit f5dc8db

Browse files
ntBredylwil3
authored andcommitted
move test from preview_rules
1 parent 407cd04 commit f5dc8db

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

crates/ruff_linter/src/rules/ruff/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ mod tests {
9393
#[test_case(Rule::NeedlessElse, Path::new("RUF047_try.py"))]
9494
#[test_case(Rule::MapIntVersionParsing, Path::new("RUF048.py"))]
9595
#[test_case(Rule::MapIntVersionParsing, Path::new("RUF048_1.py"))]
96+
#[test_case(Rule::DataclassEnum, Path::new("RUF049.py"))]
9697
#[test_case(Rule::IfKeyInDictDel, Path::new("RUF051.py"))]
9798
#[test_case(Rule::UsedDummyVariable, Path::new("RUF052.py"))]
9899
#[test_case(Rule::ClassWithMixedTypeVars, Path::new("RUF053.py"))]
@@ -475,7 +476,6 @@ mod tests {
475476
#[test_case(Rule::UnnecessaryRegularExpression, Path::new("RUF055_1.py"))]
476477
#[test_case(Rule::UnnecessaryRegularExpression, Path::new("RUF055_2.py"))]
477478
#[test_case(Rule::PytestRaisesAmbiguousPattern, Path::new("RUF043.py"))]
478-
#[test_case(Rule::DataclassEnum, Path::new("RUF049.py"))]
479479
#[test_case(Rule::IndentedFormFeed, Path::new("RUF054.py"))]
480480
#[test_case(Rule::ImplicitClassVarInDataclass, Path::new("RUF045.py"))]
481481
fn preview_rules(rule_code: Rule, path: &Path) -> Result<()> {

0 commit comments

Comments
 (0)