@@ -24,7 +24,7 @@ def test_pytest_marker(executed_docstring_source):
2424 )
2525
2626
27- def test_omit_pytest_markers (executed_docstring_source ):
27+ def test_show_reserved_pytest_markers_full_decorator (executed_docstring_source ):
2828 """
2929 >>> import pytest
3030
@@ -33,17 +33,33 @@ def test_omit_pytest_markers(executed_docstring_source):
3333 ... @pytest.mark.parametrize("param", ["foo"])
3434 ... @pytest.mark.skipif(False, reason="reason2")
3535 ... @pytest.mark.skipif(False, reason="reason1")
36- ... def test_omit_pytest_markers_example (param):
36+ ... def test_show_reserved_pytest_markers_full_decorator_example (param):
3737 ... pass
3838 """
3939
4040 assert_that (executed_docstring_source .allure_report ,
41- has_test_case ('test_omit_pytest_markers_example [foo]' ,
41+ has_test_case ('test_show_reserved_pytest_markers_full_decorator_example [foo]' ,
4242 has_tag ("usermark1" ),
4343 has_tag ("usermark2" ),
44- not_ (has_tag ("skipif(False, reason='reason2')" )),
45- not_ (has_tag ("skipif(False, reason='reason1')" )),
46- not_ (has_tag ("parametrize('param', ['foo'])" ))
44+ has_tag ("@pytest.mark.skipif(False, reason='reason1')" ),
45+ not_ (has_tag ("@pytest.mark.skipif(False, reason='reason2')" )),
46+ not_ (has_tag ("@pytest.mark.parametrize('param', ['foo'])" ))
47+ )
48+ )
49+
50+
51+ def test_pytest_xfail_marker (executed_docstring_source ):
52+ """
53+ >>> import pytest
54+
55+ >>> @pytest.mark.xfail(reason='this is unexpect pass')
56+ ... def test_pytest_xfail_marker_example():
57+ ... pass
58+ """
59+
60+ assert_that (executed_docstring_source .allure_report ,
61+ has_test_case ('test_pytest_xfail_marker_example' ,
62+ has_tag ("@pytest.mark.xfail(reason='this is unexpect pass')" ),
4763 )
4864 )
4965
0 commit comments