-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
ffe6c6f
commit 2fb6ee7
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |