tests: Fix "Different tests were collected" in python 3.5

pytest-xdist requires all subprocesses to collect the tests in the same
order. Python 3.5, however, randomizes order of dict keys.
This commit is contained in:
Tomas Janousek 2020-07-05 10:55:56 +02:00 committed by Tomas Babej
parent bc471ec94a
commit f2d1c162e2

View file

@ -21,7 +21,7 @@ markup_headers = {
}
@pytest.fixture(params=markup_headers)
@pytest.fixture(params=sorted(markup_headers.keys()))
def test_syntax(request):
markup = request.param
format_header_dict = markup_headers[markup]