Change NotInTest to NotIsTest

This commit is contained in:
Charlie Marsh 2022-11-18 18:23:40 -05:00
parent e81efa5a3d
commit 0fe2b15676
2 changed files with 4 additions and 4 deletions

View file

@ -241,7 +241,7 @@ pub fn not_tests(
Cmpop::Is => {
if check_not_is {
let mut check =
Check::new(CheckKind::NotInTest, Range::from_located(operand));
Check::new(CheckKind::NotIsTest, Range::from_located(operand));
if checker.patch() && should_fix {
if let Some(content) = compare(left, &[Cmpop::IsNot], comparators) {
check.amend(Fix::replacement(

View file

@ -2,7 +2,7 @@
source: src/linter.rs
expression: checks
---
- kind: NotInTest
- kind: NotIsTest
location:
row: 2
column: 7
@ -19,7 +19,7 @@ expression: checks
row: 2
column: 13
applied: false
- kind: NotInTest
- kind: NotIsTest
location:
row: 5
column: 7
@ -36,7 +36,7 @@ expression: checks
row: 5
column: 15
applied: false
- kind: NotInTest
- kind: NotIsTest
location:
row: 8
column: 7