[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-12-23 03:11:10 +00:00
parent b247f574a3
commit e6aa406c87
2 changed files with 25 additions and 22 deletions

View File

@ -1,5 +1,6 @@
import pytest import pytest
def test_pass(): def test_pass():
... ...
@ -8,6 +9,7 @@ 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
@ -18,4 +20,3 @@ def test_xfail():
def test_xpass(): def test_xpass():
a, b = 1, 1 a, b = 1, 1
assert a == b assert a == b

View File

@ -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