-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from gleb-sevruk/#12_skipped_tests_show_as_suc…
…cess #12 Skipped tests should not show as fails
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
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
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,22 @@ | ||
from unittest import TestCase, skip | ||
|
||
|
||
class TestWithSkips(TestCase): | ||
def setUp(self) -> None: | ||
# by some reason skipped test without reason still runs setup | ||
pass | ||
|
||
@skip | ||
def test_should_be_skipped(self): | ||
print('this should show as success in pycrunch report') | ||
|
||
@skip('reason') | ||
def test_should_be_skipped_with_reason(self): | ||
# py.test reporter seems to use different algo to skip test with reason and without | ||
# make sure both of them works | ||
|
||
print('this should show as success in pycrunch report') | ||
|
||
def test_alongside_with_skipped(self): | ||
assert True | ||
|
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