mirror of
https://github.com/ipfs-shipyard/py-ipfs-http-client.git
synced 2021-08-30 00:23:11 +03:00
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:
@@ -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
|
||||
|
||||
@@ -107,7 +107,7 @@ try:
|
||||
"localserver",
|
||||
"pytest_cov",
|
||||
"pytest_mock",
|
||||
"pytest_ordering",
|
||||
"pytest_order",
|
||||
])
|
||||
|
||||
with tempfile.NamedTemporaryFile("r+") as coveragerc:
|
||||
|
||||
5
tox.ini
5
tox.ini
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user