@@ -18,8 +18,29 @@ def test_pytest_marker():
1818 >>> allure_report = getfixture('allure_report')
1919 >>> assert_that(allure_report,
2020 ... has_test_case('test_pytest_marker',
21- ... has_tag('@pytest.mark.cool'),
22- ... has_tag('@pytest.mark.stuff')
21+ ... has_tag('cool'),
22+ ... has_tag('stuff')
23+ ... )
24+ ... )
25+ """
26+ pass
27+
28+
29+ @pytest .mark .usermark1
30+ @pytest .mark .usermark2
31+ @pytest .mark .parametrize ("param" , ["foo" ])
32+ @pytest .mark .skipif (False , reason = "reason2" )
33+ @pytest .mark .skipif (False , reason = "reason1" )
34+ def test_omit_pytest_markers (param ):
35+ """
36+ >>> allure_report = getfixture('allure_report')
37+ >>> assert_that(allure_report,
38+ ... has_test_case('test_omit_pytest_markers[foo]',
39+ ... has_tag("usermark1"),
40+ ... has_tag("usermark2"),
41+ ... is_not(has_tag("skipif(False, reason='reason2')")),
42+ ... is_not(has_tag("skipif(False, reason='reason1')")),
43+ ... is_not(has_tag("parametrize('param', ['foo'])")),
2344 ... )
2445 ... )
2546 """
@@ -32,7 +53,7 @@ def test_pytest_marker_with_args():
3253 >>> allure_report = getfixture('allure_report')
3354 >>> assert_that(allure_report,
3455 ... has_test_case('test_pytest_marker_with_args',
35- ... has_tag("@pytest.mark. marker('cool', 'stuff')")
56+ ... has_tag("marker('cool', 'stuff')")
3657 ... )
3758 ... )
3859 """
@@ -45,7 +66,7 @@ def test_pytest_marker_with_kwargs():
4566 >>> allure_report = getfixture('allure_report')
4667 >>> assert_that(allure_report,
4768 ... has_test_case('test_pytest_marker_with_kwargs',
48- ... has_tag("@pytest.mark. marker(stuff='cool')")
69+ ... has_tag("marker(stuff='cool')")
4970 ... )
5071 ... )
5172 """
@@ -59,7 +80,7 @@ def test_pytest_marker_with_kwargs_native_encoding():
5980 >>> allure_report = getfixture('allure_report')
6081 >>> assert_that(allure_report,
6182 ... has_test_case('test_pytest_marker_with_kwargs_native_encoding',
62- ... has_tag("@pytest.mark. marker(stuff=%s)" % represent('я'))
83+ ... has_tag("marker(stuff=%s)" % represent('я'))
6384 ... )
6485 ... )
6586 """
@@ -73,7 +94,7 @@ def test_pytest_marker_with_kwargs_utf_encoding():
7394 >>> allure_report = getfixture('allure_report')
7495 >>> assert_that(allure_report,
7596 ... has_test_case('test_pytest_marker_with_kwargs_utf_encoding',
76- ... has_tag("@pytest.mark. marker(stuff=%s)" % represent('я'))
97+ ... has_tag("marker(stuff=%s)" % represent('я'))
7798 ... )
7899 ... )
79100 """
@@ -86,7 +107,7 @@ def test_pytest_marker_with_args_and_kwargs():
86107 >>> allure_report = getfixture('allure_report')
87108 >>> assert_that(allure_report,
88109 ... has_test_case('test_pytest_marker_with_args_and_kwargs',
89- ... has_tag("@pytest.mark. marker('that', stuff='cool')")
110+ ... has_tag("marker('that', stuff='cool')")
90111 ... )
91112 ... )
92113 """
0 commit comments