Merge pull request #8411 from RonnyPfannschmidt/example-outcomes-check

fix bug in test for issue 519
This commit is contained in:
Anthony Sottile 2021-03-07 08:17:34 -08:00 committed by GitHub
commit 79b03ce8db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1 @@
Assert the outcomes for the issue 518 test and fix the test.

View File

@ -20,12 +20,12 @@ def checked_order():
yield order
pprint.pprint(order)
assert order == [
("testing/example_scripts/issue_519.py", "fix1", "arg1v1"),
("issue_519.py", "fix1", "arg1v1"),
("test_one[arg1v1-arg2v1]", "fix2", "arg2v1"),
("test_two[arg1v1-arg2v1]", "fix2", "arg2v1"),
("test_one[arg1v1-arg2v2]", "fix2", "arg2v2"),
("test_two[arg1v1-arg2v2]", "fix2", "arg2v2"),
("testing/example_scripts/issue_519.py", "fix1", "arg1v2"),
("issue_519.py", "fix1", "arg1v2"),
("test_one[arg1v2-arg2v1]", "fix2", "arg2v1"),
("test_two[arg1v2-arg2v1]", "fix2", "arg2v1"),
("test_one[arg1v2-arg2v2]", "fix2", "arg2v2"),

View File

@ -1,6 +1,7 @@
from _pytest.pytester import Pytester
def test_510(pytester: Pytester) -> None:
def test_519(pytester: Pytester) -> None:
pytester.copy_example("issue_519.py")
pytester.runpytest("issue_519.py")
res = pytester.runpytest("issue_519.py")
res.assert_outcomes(passed=8)