[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,21 +1,22 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def test_pass():
|
def test_pass():
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
||||||
def test_fail():
|
def test_fail():
|
||||||
a,b = 1,2
|
a, b = 1, 2
|
||||||
assert a == b
|
assert a == b
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail
|
@pytest.mark.xfail
|
||||||
def test_xfail():
|
def test_xfail():
|
||||||
a,b = 1,2
|
a, b = 1, 2
|
||||||
assert a == b
|
assert a == b
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail
|
@pytest.mark.xfail
|
||||||
def test_xpass():
|
def test_xpass():
|
||||||
a,b = 1,1
|
a, b = 1, 1
|
||||||
assert a == b
|
assert a == b
|
||||||
|
|
||||||
|
|
|
@ -1,30 +1,32 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
def test_pass():
|
def test_pass():
|
||||||
print('in test_pass')
|
print("in test_pass")
|
||||||
|
|
||||||
|
|
||||||
def test_fail():
|
def test_fail():
|
||||||
print('in test_fail')
|
print("in test_fail")
|
||||||
a,b = 1,2
|
a, b = 1, 2
|
||||||
assert a == b
|
assert a == b
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail
|
@pytest.mark.xfail
|
||||||
def test_xfail():
|
def test_xfail():
|
||||||
print('in test_xfail')
|
print("in test_xfail")
|
||||||
a,b = 1,2
|
a, b = 1, 2
|
||||||
assert a == b
|
assert a == b
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail(reason="reason 1")
|
@pytest.mark.xfail(reason="reason 1")
|
||||||
def test_xfail_reason():
|
def test_xfail_reason():
|
||||||
print('in test_xfail')
|
print("in test_xfail")
|
||||||
a,b = 1,2
|
a, b = 1, 2
|
||||||
assert a == b
|
assert a == b
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail(reason="reason 2")
|
@pytest.mark.xfail(reason="reason 2")
|
||||||
def test_xpass():
|
def test_xpass():
|
||||||
print('in test_xpass')
|
print("in test_xpass")
|
||||||
a,b = 1,1
|
a, b = 1, 1
|
||||||
assert a == b
|
assert a == b
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue