[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
b247f574a3
commit
e6aa406c87
|
@ -1,5 +1,6 @@
|
|||
import pytest
|
||||
|
||||
|
||||
def test_pass():
|
||||
...
|
||||
|
||||
|
@ -8,6 +9,7 @@ def test_fail():
|
|||
a, b = 1, 2
|
||||
assert a == b
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
def test_xfail():
|
||||
a, b = 1, 2
|
||||
|
@ -18,4 +20,3 @@ def test_xfail():
|
|||
def test_xpass():
|
||||
a, b = 1, 1
|
||||
assert a == b
|
||||
|
||||
|
|
|
@ -1,30 +1,32 @@
|
|||
import pytest
|
||||
|
||||
|
||||
def test_pass():
|
||||
print('in test_pass')
|
||||
print("in test_pass")
|
||||
|
||||
|
||||
def test_fail():
|
||||
print('in test_fail')
|
||||
print("in test_fail")
|
||||
a, b = 1, 2
|
||||
assert a == b
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
def test_xfail():
|
||||
print('in test_xfail')
|
||||
print("in test_xfail")
|
||||
a, b = 1, 2
|
||||
assert a == b
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="reason 1")
|
||||
def test_xfail_reason():
|
||||
print('in test_xfail')
|
||||
print("in test_xfail")
|
||||
a, b = 1, 2
|
||||
assert a == b
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="reason 2")
|
||||
def test_xpass():
|
||||
print('in test_xpass')
|
||||
print("in test_xpass")
|
||||
a, b = 1, 1
|
||||
assert a == b
|
||||
|
||||
|
|
Loading…
Reference in New Issue