-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
828404b
commit 8e740df
Showing
2 changed files
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import pytest | ||
|
||
|
||
def test_always_passes(): | ||
assert True | ||
|
||
|
||
# @pytest.mark.skip(reason="CI CHECK") | ||
def test_always_fails(ctx): | ||
assert False, "Always Fail" | ||
|
||
|
||
@pytest.mark.skip(reason="Test") | ||
def test_always_skip(): | ||
assert True | ||
|
||
|
||
def test_always_xfail(): | ||
pytest.xfail("xfail") | ||
|
||
|
||
@pytest.mark.xfail(reason="always xfail") | ||
def test_always_xpass(): | ||
pass | ||
|
||
def test_ctx(ctx): | ||
Check failure on line 26 in sample/test/test-pytest.py GitHub Actions / build (3.9)
|
||
assert ctx is not None | ||
|
||
def test_dut(dut): | ||
Check failure on line 29 in sample/test/test-pytest.py GitHub Actions / build (3.9)
|
||
assert dut is not None |
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