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:
Tomáš Chvátal
2020-08-17 06:22:38 +00:00
committed by Git OBS Bridge
commit 427e620b30
6 changed files with 129 additions and 0 deletions

36
test_percent.py Normal file
View 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