Rename SPR001 to U008 (#379)

This commit is contained in:
Charlie Marsh 2022-10-09 21:58:22 -04:00 committed by GitHub
parent 6a1d7d8a1c
commit b51a080a44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 97 additions and 17 deletions

View file

@ -955,10 +955,10 @@ mod tests {
}
#[test]
fn spr001() -> Result<()> {
fn u008() -> Result<()> {
let mut checks = check_path(
Path::new("./resources/test/fixtures/SPR001.py"),
&settings::Settings::for_rule(CheckCode::SPR001),
Path::new("./resources/test/fixtures/U008.py"),
&settings::Settings::for_rule(CheckCode::U008),
&fixer::Mode::Generate,
)?;
checks.sort_by_key(|check| check.location);