Skip to content

Commit

Permalink
add no-op tearDown() method at TestCase
Browse files Browse the repository at this point in the history
Checklist:
- Invoke tearDown afterward ✅
- Invoke tearDown even if the test method fails
- Run multiple tests
- Report collected results
- Log string in WasRun ✅
  • Loading branch information
kaiosilveira committed Mar 18, 2023
1 parent 3271c48 commit 0cd0596
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ def run(self) -> None:
method = getattr(self, self.name)
method()
self.tearDown()

def tearDown(self) -> None:
pass

0 comments on commit 0cd0596

Please sign in to comment.