From 0b3fab256b3d9db09cecd93510cc74f923b1c0bc Mon Sep 17 00:00:00 2001 From: Harutaka Kawamura Date: Sun, 8 Jan 2023 12:15:48 +0900 Subject: [PATCH] Remove `assertNotContains` (#1729) `unittest.TestCase` doens't have a method named `assertNotContains`. --- src/flake8_pytest_style/plugins/unittest_assert.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/flake8_pytest_style/plugins/unittest_assert.rs b/src/flake8_pytest_style/plugins/unittest_assert.rs index f7ec89697fa23..63f7a3b814bc2 100644 --- a/src/flake8_pytest_style/plugins/unittest_assert.rs +++ b/src/flake8_pytest_style/plugins/unittest_assert.rs @@ -30,7 +30,6 @@ pub enum UnittestAssert { MultiLineEqual, NotAlmostEqual, NotAlmostEquals, - NotContains, NotEqual, NotEquals, NotIn, @@ -73,7 +72,6 @@ impl std::fmt::Display for UnittestAssert { UnittestAssert::MultiLineEqual => write!(f, "assertMultiLineEqual"), UnittestAssert::NotAlmostEqual => write!(f, "assertNotAlmostEqual"), UnittestAssert::NotAlmostEquals => write!(f, "assertNotAlmostEquals"), - UnittestAssert::NotContains => write!(f, "assertNotContains"), UnittestAssert::NotEqual => write!(f, "assertNotEqual"), UnittestAssert::NotEquals => write!(f, "assertNotEquals"), UnittestAssert::NotIn => write!(f, "assertNotIn"), @@ -120,7 +118,6 @@ impl TryFrom<&str> for UnittestAssert { "assertMultiLineEqual" => Ok(UnittestAssert::MultiLineEqual), "assertNotAlmostEqual" => Ok(UnittestAssert::NotAlmostEqual), "assertNotAlmostEquals" => Ok(UnittestAssert::NotAlmostEquals), - "assertNotContains" => Ok(UnittestAssert::NotContains), "assertNotEqual" => Ok(UnittestAssert::NotEqual), "assertNotEquals" => Ok(UnittestAssert::NotEquals), "assertNotIn" => Ok(UnittestAssert::NotIn), @@ -203,7 +200,6 @@ impl UnittestAssert { UnittestAssert::MultiLineEqual => Arguments::new(vec!["first", "second"], vec!["msg"]), UnittestAssert::NotAlmostEqual => Arguments::new(vec!["first", "second"], vec!["msg"]), UnittestAssert::NotAlmostEquals => Arguments::new(vec!["first", "second"], vec!["msg"]), - UnittestAssert::NotContains => Arguments::new(vec!["container", "member"], vec!["msg"]), UnittestAssert::NotEqual => Arguments::new(vec!["first", "second"], vec!["msg"]), UnittestAssert::NotEquals => Arguments::new(vec!["first", "second"], vec!["msg"]), UnittestAssert::NotIn => Arguments::new(vec!["member", "container"], vec!["msg"]),