Skip to content

Commit f04ff60

Browse files
authored
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: NixOS/nixpkgs#122264. pytest_order is a maintained and working fork. I added a similar patch to Nixpkgs a while ago to make it work there: https://github.com/NixOS/nixpkgs/blob/6965eef223f491cc1d9289ce972d8ab6811a2d28/pkgs/development/python-modules/ipfshttpclient/default.nix#L59-L63. Co-authored-by: ntninja (Alexander Schlarb)
1 parent e02a95f commit f04ff60

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

test/functional/test_miscellaneous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_id(client):
2121
# Shutdown test #
2222
#################
2323

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

test/run-tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def pytest_pyfunc_call(self, pyfuncitem):
107107
"localserver",
108108
"pytest_cov",
109109
"pytest_mock",
110-
"pytest_ordering",
110+
"pytest_order",
111111
])
112112

113113
with tempfile.NamedTemporaryFile("r+") as coveragerc:

tox.ini

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ deps =
1818
pytest-dependency ~= 0.5
1919
pytest-localserver ~= 0.5
2020
pytest-mock ~= 3.5
21-
pytest-ordering ~= 0.6
21+
pytest-order ~= 0.8
2222

2323
pytest-cid ~= 1.1
2424
py-cid
@@ -155,6 +155,3 @@ testpaths =
155155
ipfshttpclient
156156
test/unit
157157
test/functional
158-
159-
markers =
160-
last: marker supplied by but not registered by pytest-ordering module

0 commit comments

Comments
 (0)