Replace pytest_ordering with pytest_order

pytest_ordering seems unmaintained as it hasn't been updated in two years: https://github.com/ftobia/pytest-ordering. It is also broken, at least in Nixpkgs: https://github.com/NixOS/nixpkgs/pull/122264.
pytest_order is a maintained and working fork.
I added a similar patch to Nixpkgs a while ago to make it work there: 6965eef223/pkgs/development/python-modules/ipfshttpclient/default.nix (L59-L63).

Co-authored-by: ntninja (Alexander Schlarb)
This commit is contained in:
Luflosi
2021-06-25 17:48:44 +02:00
committed by GitHub
parent e02a95f892
commit f04ff60155
3 changed files with 3 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ def test_id(client):
# Shutdown test #
#################
@pytest.mark.last
@pytest.mark.order("last")
def test_daemon_stop(daemon, client):
# The value for the `daemon` “fixture” is injected using a pytest plugin
# with access to the created daemon subprocess object defined directly

View File

@@ -107,7 +107,7 @@ try:
"localserver",
"pytest_cov",
"pytest_mock",
"pytest_ordering",
"pytest_order",
])
with tempfile.NamedTemporaryFile("r+") as coveragerc:

View File

@@ -18,7 +18,7 @@ deps =
pytest-dependency ~= 0.5
pytest-localserver ~= 0.5
pytest-mock ~= 3.5
pytest-ordering ~= 0.6
pytest-order ~= 0.8
pytest-cid ~= 1.1
py-cid
@@ -155,6 +155,3 @@ testpaths =
ipfshttpclient
test/unit
test/functional
markers =
last: marker supplied by but not registered by pytest-ordering module