ci: test correctness pattern (#54186)

This commit is contained in:
Raffael Meyer
2026-04-22 22:00:42 +02:00
committed by GitHub
parent fd4cedf5e4
commit 7f8fa7cf5e

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