Implement __metaclass__ = type removal (#324)

This commit is contained in:
Charlie Marsh 2022-10-04 14:31:52 -04:00 committed by GitHub
parent 4e6ae33a3a
commit fdb32330a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 165 additions and 26 deletions

View file

@ -803,4 +803,16 @@ mod tests {
insta::assert_yaml_snapshot!(checks);
Ok(())
}
#[test]
fn u001() -> Result<()> {
let mut checks = check_path(
Path::new("./resources/test/fixtures/U001.py"),
&settings::Settings::for_rule(CheckCode::U001),
&fixer::Mode::Generate,
)?;
checks.sort_by_key(|check| check.location);
insta::assert_yaml_snapshot!(checks);
Ok(())
}
}