mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-24 00:58:29 +00:00
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
@@ -10,9 +10,15 @@ rules:
|
||||
languages: [python]
|
||||
severity: ERROR
|
||||
- id: Dont-override-teardown
|
||||
pattern: |
|
||||
def tearDown(...):
|
||||
...
|
||||
patterns:
|
||||
- pattern: |
|
||||
def tearDown(...):
|
||||
...
|
||||
- pattern-not: |
|
||||
def tearDown(...):
|
||||
...
|
||||
super().tearDown()
|
||||
...
|
||||
message: ERPNextTestSuite forces rollback on each tearDown, which ensures idempotency. Don't override tearDown.
|
||||
languages: [python]
|
||||
severity: ERROR
|
||||
|
||||
Reference in New Issue
Block a user