-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from chrismeyersfsu/feature-target_ids
Feature target ids
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
import pytest | ||
import mock | ||
|
||
from _pytest.main import EXIT_OK | ||
|
||
|
||
@pytest.mark.usefixtures('monkeypatch_github3') | ||
def test_xfail_particular_parametrize_test_ids(testdir, capsys): | ||
src = """ | ||
import pytest | ||
@pytest.mark.github('https://github.com/some/open/issues/1', ids=['even2', 'even4']) | ||
@pytest.mark.parametrize("count", [1, 2, 3, 4], ids=["odd1", "even2", "odd3", "even4"]) | ||
def test_will_xfail(count): | ||
assert count % 2 | ||
""" | ||
result = testdir.inline_runsource(src, *['']) | ||
stdout, stderr = capsys.readouterr() | ||
assert result.ret == EXIT_OK | ||
|
||
|