Skip to content

Commit 40303f5

Browse files
Merge pull request #189 from The-Compiler/fix-test
Don't use skip-mark in test_apply_tag_hook
2 parents e76b066 + 0e8debd commit 40303f5

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/feature/test_tags.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def pytest_bdd_apply_tag(tag, function):
120120
Scenario: Tags
121121
Given I have a bar
122122
123-
@skip
123+
@xfail
124124
Scenario: Tags 2
125125
Given I have a bar
126126
""")
@@ -133,14 +133,9 @@ def i_have_bar():
133133
134134
scenarios('test.feature')
135135
""")
136-
result = testdir.runpytest('-rs')
136+
result = testdir.runpytest('-rsx')
137137
result.stdout.fnmatch_lines(["SKIP *: Not implemented yet"])
138-
result.stdout.fnmatch_lines(
139-
[
140-
"SKIP *: unconditional skip",
141-
"*= 2 skipped * =*",
142-
],
143-
)
138+
result.stdout.fnmatch_lines(["*= 1 skipped, 1 xpassed * =*"])
144139

145140

146141
def test_tag_with_spaces(testdir):

0 commit comments

Comments
 (0)