forked from pool/python-pytest-percent
Accepting request 827070 from home:jayvdb:pytest
Another way to handle flaky tests on OBS OBS-URL: https://build.opensuse.org/request/show/827070 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-percent?expand=0&rev=1
This commit is contained in:
36
test_percent.py
Normal file
36
test_percent.py
Normal file
@@ -0,0 +1,36 @@
|
||||
import pytest
|
||||
|
||||
|
||||
def test_1(required_percent):
|
||||
assert isinstance(required_percent, int)
|
||||
|
||||
|
||||
def test_2():
|
||||
assert True
|
||||
|
||||
|
||||
def test_3():
|
||||
assert True
|
||||
|
||||
|
||||
def test_4():
|
||||
assert True
|
||||
|
||||
|
||||
def test_5():
|
||||
assert False
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
def test_6():
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
def test_7():
|
||||
assert False
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
def test_8():
|
||||
assert True
|
||||
Reference in New Issue
Block a user