Skip to content

Commit 2809ec3

Browse files
committed
add no-op tearDown() method at TestCase
Checklist: - Invoke tearDown afterward 👈🏼 - Invoke tearDown even if the test method fails - Run multiple tests - Report collected results - Log string in WasRun ✅
1 parent 2f5090f commit 2809ec3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test_case.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ def run(self) -> None:
1111
method = getattr(self, self.name)
1212
method()
1313
self.tearDown()
14+
15+
def tearDown(self) -> None:
16+
pass

0 commit comments

Comments
 (0)