ci: test correctness pattern (backport #54186) (#54473)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2026-04-23 13:29:15 +00:00
committed by GitHub
parent f7b87ed0e3
commit ddc9ea16cc

View File

@@ -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