Skip to content

Commit

Permalink
Remove assertNotContains (#1729)
Browse files Browse the repository at this point in the history
`unittest.TestCase` doens't have a method named `assertNotContains`.
  • Loading branch information
harupy authored Jan 8, 2023
1 parent 212ce4d commit 0b3fab2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/flake8_pytest_style/plugins/unittest_assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ pub enum UnittestAssert {
MultiLineEqual,
NotAlmostEqual,
NotAlmostEquals,
NotContains,
NotEqual,
NotEquals,
NotIn,
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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"]),
Expand Down

0 comments on commit 0b3fab2

Please sign in to comment.