From ff0c5cf9b96be38f86afc9a2d873772700e3b438 Mon Sep 17 00:00:00 2001 From: James Morris Date: Thu, 23 Sep 2021 20:08:51 -0400 Subject: [PATCH] Use a patched pytest-order pytest-order contains a fix for parameterized tests in 1.0, but that version dropped support for Python 3.5. This patched version runs on Python 3.5 and has all the other updates in pytest-order 1.0. --- requirements-test.txt | 3 ++- tox.ini | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements-test.txt b/requirements-test.txt index f4bb491..434c33e 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,8 @@ -r requirements.txt pytest pytest-cov -pytest-order<1.0 +# We need a patched version of pytest-cov to run on 3.5 and handle parameterized tests +git+https://github.com/SecurityInnovation/pytest-order.git@07ceb36233fb083275f34d5c8abbd3e35cd00158#egg=pytest-order flake8 pep8-naming # NOTE: gpg is not here on purpose currently diff --git a/tox.ini b/tox.ini index cc616e8..71a9124 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,8 @@ deps = six>=1.9.0 pytest pytest-cov - pytest-order<1.0 + # We need a patched version of pytest-cov to run on 3.5 and handle parameterized tests + git+https://github.com/SecurityInnovation/pytest-order.git@07ceb36233fb083275f34d5c8abbd3e35cd00158#egg=pytest-order install_command = pip install {opts} --no-cache-dir {packages} commands =