mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
custom_check: Remove assertEquals check.
Ruff checks this as U005 (and even auto-fixes it). Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
73c4da7974
commit
4dce3c54d9
@@ -276,12 +276,6 @@ python_rules = RuleList(
|
||||
"good_lines": ["def foo (self):"],
|
||||
"bad_lines": ["def foo(self: Any):"],
|
||||
},
|
||||
{
|
||||
"pattern": "assertEquals[(]",
|
||||
"description": "Use assertEqual, not assertEquals (which is deprecated).",
|
||||
"good_lines": ["assertEqual(1, 2)"],
|
||||
"bad_lines": ["assertEquals(1, 2)"],
|
||||
},
|
||||
{
|
||||
"pattern": r"assertEqual[(]len[(][^\n ]*[)],",
|
||||
"description": "Use the assert_length helper instead of assertEqual(len(..), ..).",
|
||||
|
||||
Reference in New Issue
Block a user