Skip to content

Commit 3a3422a

Browse files
committed
implement TestCaseTest
Checklist: - Invoke test method ✅ - Invoke setUp first - Invoke tearDown afterward - Invoke tearDown even if the test method fails - Run multiple tests - Report collected results
1 parent 0d1d5e6 commit 3a3422a

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/index.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/test_case_test.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from test_case import TestCase
2+
from was_run import WasRun
3+
4+
5+
class TestCaseTest(TestCase):
6+
def testRunning(self) -> None:
7+
test = WasRun("testMethod")
8+
assert (not test.wasRun)
9+
test.run()
10+
assert (test.wasRun)
11+
12+
13+
TestCaseTest("testRunning").run()

0 commit comments

Comments
 (0)