From 3410c8ef26666b1bec977551c49644e722fd49c4 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt <ronny.pfannschmidt@redhat.com> Date: Wed, 18 Jan 2017 14:51:29 +0100 Subject: [PATCH] add the actually expected fixtureorder for #519 --- testing/example_scripts/issue_519.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/testing/example_scripts/issue_519.py b/testing/example_scripts/issue_519.py index 08a9e17d7c7..da92e42461f 100644 --- a/testing/example_scripts/issue_519.py +++ b/testing/example_scripts/issue_519.py @@ -14,7 +14,23 @@ def checked_order(): yield order pprint.pprint(order) - assert order == [] + assert order == [ + ('testing/example_scripts/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'), + ('test_one[arg1v2-arg2v1]', 'fix2', 'arg2v1'), + ('test_two[arg1v2-arg2v1]', 'fix2', 'arg2v1'), + + ('test_one[arg1v2-arg2v2]', 'fix2', 'arg2v2'), + ('test_two[arg1v2-arg2v2]', 'fix2', 'arg2v2'), + ] + + @pytest.yield_fixture(scope='module')