Skip to content

Commit

Permalink
implement TestCaseTest
Browse files Browse the repository at this point in the history
Checklist:
- Invoke test method ✅
- Invoke setUp first
- Invoke tearDown afterward
- Invoke tearDown even if the test method fails
- Run multiple tests
- Report collected results
  • Loading branch information
kaiosilveira committed Mar 18, 2023
1 parent ffe6c6f commit 2fb6ee7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/index.py

This file was deleted.

13 changes: 13 additions & 0 deletions src/test_case_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from test_case import TestCase
from was_run import WasRun


class TestCaseTest(TestCase):
def testRunning(self) -> None:
test = WasRun("testMethod")
assert (not test.wasRun)
test.run()
assert (test.wasRun)


TestCaseTest("testRunning").run()

0 comments on commit 2fb6ee7

Please sign in to comment.