fix bug in test for issue 519

assert the actual outcome and fix the filename
This commit is contained in:
Ronny Pfannschmidt 2021-03-07 14:57:19 +01:00
parent 620e819656
commit 412fc001a0
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 yield order
pprint.pprint(order) pprint.pprint(order)
assert order == [ assert order == [
("testing/example_scripts/issue_519.py", "fix1", "arg1v1"), ("issue_519.py", "fix1", "arg1v1"),
("test_one[arg1v1-arg2v1]", "fix2", "arg2v1"), ("test_one[arg1v1-arg2v1]", "fix2", "arg2v1"),
("test_two[arg1v1-arg2v1]", "fix2", "arg2v1"), ("test_two[arg1v1-arg2v1]", "fix2", "arg2v1"),
("test_one[arg1v1-arg2v2]", "fix2", "arg2v2"), ("test_one[arg1v1-arg2v2]", "fix2", "arg2v2"),
("test_two[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_one[arg1v2-arg2v1]", "fix2", "arg2v1"),
("test_two[arg1v2-arg2v1]", "fix2", "arg2v1"), ("test_two[arg1v2-arg2v1]", "fix2", "arg2v1"),
("test_one[arg1v2-arg2v2]", "fix2", "arg2v2"), ("test_one[arg1v2-arg2v2]", "fix2", "arg2v2"),

View File

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