1
0
mirror of synced 2024-12-22 12:50:33 +01:00

dev-vcs/dandi-cli: dropped old versions

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
Horea Christian 2022-03-29 04:55:22 -04:00
parent a995db862f
commit 9a5e6a676f
No known key found for this signature in database
GPG Key ID: 161C0BE6255333D3
7 changed files with 0 additions and 498 deletions

View File

@ -1,22 +0,0 @@
01 Feb 2022; <chymera@gentoo.org> dandi-cli-0.34.1.ebuild,
dandi-cli-0.35.0.ebuild:
dev-vcs/dandi-cli: depending on old jsonschema as per weird issue
https://github.com/dandi/dandi-cli/issues/825
*dandi-cli-0.34.1 (25 Jan 2022)
*dandi-cli-0.35.0 (25 Jan 2022)
25 Jan 2022; <chymera@gentoo.org> +dandi-cli-0.34.1.ebuild,
+dandi-cli-0.35.0.ebuild, +files/dandi-cli-0.34.1-pip-versioncheck.patch,
dandi-cli-0.31.0.ebuild:
dev-vcs/dandi-cli: version bump Tests fail: https://github.com/dandi/dandi-
cli/issues/878
*dandi-cli-0.31.0 (29 Oct 2021)
29 Oct 2021; <chymera@gentoo.org> +dandi-cli-0.31.0.ebuild,
+files/dandi-cli-0.28.0-no-etelemetry.patch, -ChangeLog,
-dandi-cli-0.27.2.ebuild, -files/dandi-cli-0.27.2-no-etelemetry.patch,
-files/dandi-cli-0.27.2-pip-versioncheck.patch, dandi-cli-0.28.0.ebuild,
dandi-cli-0.30.3.ebuild:
dev-vcs/dandi-cli: version bump test failures

View File

@ -1,6 +1,3 @@
DIST dandi-cli-0.28.0.tar.gz 173403 SHA256 27b67c93a8625dd15db2e3513ae3448569ccade2dc82eb1f110de5b1c02b5ec3 SHA512 399ee378798a3c7fdc92314dca25e91178bb157145205e43a1d2ec461f36c674ed1b63b97f805ab9d25eb30d18d82827e38024b8a72c691c3992af60fc286be3 WHIRLPOOL 3381c9f7f0c7c5263bb2a8019205a44d0b6084fc9719034462ea7d66f0f23a617dfc3468676102f931444b4b43b788e8c7c65615ebae5f30c635d51badbaf92a
DIST dandi-cli-0.30.3.tar.gz 175911 SHA256 ed218df35ee69f6d06fd6c70fe69226aaf6d3231f8b58abdd1b9fd1477350c44 SHA512 11e73a5acaa05bb2d0287e25e1e25226474f5b076ac58e9bedcb1608e6a509d113960a1d6dfe1b665d99d14d6b4b51f65eb85c38a4f9eba0ddb5492f1890cf96 WHIRLPOOL f12b8c0eada3b6ddf373301e8cfd1b1c1c4339d4ee59fe37b730eb7c91a4c031660da422316c007ce5445d2ab90c83242921cc417dad43c66bad814031811946
DIST dandi-cli-0.31.0.tar.gz 179090 SHA256 6bc9a46e90da1b6b11fcc1492c02223f135ce5a1f42747df8f5cb09fe6cb1c10 SHA512 5c72b0a75469c3f5762a653b454797723251b108c770ad617f814983691f5205c02302a444dc5650754597537d6dd75a3bc84d886a557243d489d738e3033981 WHIRLPOOL 2d2d1ad8e392f0ec0dd707963618cda3e524bd6efbd2240c8fec2fd5bec3ca15f47740a6b96c47f4f4ec05f4abd6fae90875b95fa272d79d42b305385fcafc35
DIST dandi-cli-0.34.1.tar.gz 179765 SHA256 7b8ef65b49c6adb42c927018214f11a9c549ba6297373c929b551e1443ca95c0 SHA512 c6e42052a3bbce374589eea43f3cef9525f2d95b555731dc2899f432567c92ab6425a59b131f22f547b9e74a6225462e2dc50a7c3f1b707e17fb49e75d2e0d55 WHIRLPOOL 89b9aa5b6682d4ba2c0b035ea90ad5b77fc025cb7cfd474dc8d41297e3efc567c1ded27751912c0b588f87927a117984889907c60b49dda80eb26bac8be1c93b DIST dandi-cli-0.34.1.tar.gz 179765 SHA256 7b8ef65b49c6adb42c927018214f11a9c549ba6297373c929b551e1443ca95c0 SHA512 c6e42052a3bbce374589eea43f3cef9525f2d95b555731dc2899f432567c92ab6425a59b131f22f547b9e74a6225462e2dc50a7c3f1b707e17fb49e75d2e0d55 WHIRLPOOL 89b9aa5b6682d4ba2c0b035ea90ad5b77fc025cb7cfd474dc8d41297e3efc567c1ded27751912c0b588f87927a117984889907c60b49dda80eb26bac8be1c93b
DIST dandi-cli-0.35.0.tar.gz 180324 SHA256 c05706225096cc2357552c822d6c8da985b553d2b0406415cc0037acac50222f SHA512 07689e678d064501ec6879eeb40389c87491cbde4321b382c5c1041b9a8228845086978629327a9b271b5ac62f4c66e4d3c32c1edffead93ec66ce4d03b96d9a WHIRLPOOL bd970e1983a49a7af547431fb2717cf706884fcc232698b548d687d4971699da49bff818a64081f8d83628f165996fa40182331f740933e87d69cffcd4d85d06 DIST dandi-cli-0.35.0.tar.gz 180324 SHA256 c05706225096cc2357552c822d6c8da985b553d2b0406415cc0037acac50222f SHA512 07689e678d064501ec6879eeb40389c87491cbde4321b382c5c1041b9a8228845086978629327a9b271b5ac62f4c66e4d3c32c1edffead93ec66ce4d03b96d9a WHIRLPOOL bd970e1983a49a7af547431fb2717cf706884fcc232698b548d687d4971699da49bff818a64081f8d83628f165996fa40182331f740933e87d69cffcd4d85d06
DIST dandi-cli-0.37.0.tar.gz 212121 SHA256 4bf40a179d68ae4f0b28a5b62db6da8d14e17e9cb3b747162379cceab8055448 SHA512 fe96b760bb8526cf2670be4523121b389ede82699a8b13a9b46e4511012ab15390d9aec35b5403fa4d52dd79738a37980bcc83755df738b4039ae56eb6ca0f14 WHIRLPOOL 62a0fdc4f527bc246dd0452fd481e19bd07b146b9e118b8caa71227be78f5573649b0f55912cf54fe9606dc0de579692f94cc5a92f5c9a59a9d6c091bc3c068f DIST dandi-cli-0.37.0.tar.gz 212121 SHA256 4bf40a179d68ae4f0b28a5b62db6da8d14e17e9cb3b747162379cceab8055448 SHA512 fe96b760bb8526cf2670be4523121b389ede82699a8b13a9b46e4511012ab15390d9aec35b5403fa4d52dd79738a37980bcc83755df738b4039ae56eb6ca0f14 WHIRLPOOL 62a0fdc4f527bc246dd0452fd481e19bd07b146b9e118b8caa71227be78f5573649b0f55912cf54fe9606dc0de579692f94cc5a92f5c9a59a9d6c091bc3c068f

View File

@ -1,78 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="DANDI command line client to facilitate common operations"
HOMEPAGE="https://github.com/dandi/dandi-cli"
SRC_URI="https://github.com/dandi/dandi-cli/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test etelemetry"
#RESTRICT="test"
# Test fail during collection, reported upstream: https://github.com/dandi/dandi-cli/issues/774
RDEPEND="
dev-python/appdirs[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/click-didyoumean[${PYTHON_USEDEP}]
=dev-python/dandischema-0.4*[${PYTHON_USEDEP}]
dev-python/fasteners[${PYTHON_USEDEP}]
dev-python/fscacher[${PYTHON_USEDEP}]
dev-python/humanize[${PYTHON_USEDEP}]
dev-python/joblib[${PYTHON_USEDEP}]
dev-python/keyring[${PYTHON_USEDEP}]
dev-python/keyrings_alt[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pycryptodomex[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/pynwb[${PYTHON_USEDEP}]
dev-python/pyout[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/semantic_version[${PYTHON_USEDEP}]
dev-python/tenacity[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
<dev-python/jsonschema-4[${PYTHON_USEDEP}]
"
# Errors with newer jsonschema, though not a direct dependency, reported upstream:
# https://github.com/dandi/dandi-cli/issues/825
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/anys[${PYTHON_USEDEP}]
dev-python/responses[${PYTHON_USEDEP}]
dev-python/pyfakefs[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}/${P}-pip-versioncheck.patch"
"${FILESDIR}/${P}-test_nonetwork.patch"
)
src_prepare() {
if ! use etelemetry; then
eapply "${FILESDIR}/${P}-no-etelemetry.patch"
default
sed -i "/etelemetry/d" setup.cfg
else
default
fi
}
python_test() {
export DANDI_TESTS_NONETWORK=1
${EPYTHON} -m pytest -vv || die "Tests failed with ${EPYTHON}"
}

View File

@ -1,77 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="DANDI command line client to facilitate common operations"
HOMEPAGE="https://github.com/dandi/dandi-cli"
SRC_URI="https://github.com/dandi/dandi-cli/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test etelemetry"
#RESTRICT="test"
# Test fail during collection, reported upstream: https://github.com/dandi/dandi-cli/issues/774
RDEPEND="
dev-python/appdirs[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/click-didyoumean[${PYTHON_USEDEP}]
=dev-python/dandischema-0.4*[${PYTHON_USEDEP}]
dev-python/fasteners[${PYTHON_USEDEP}]
dev-python/fscacher[${PYTHON_USEDEP}]
dev-python/humanize[${PYTHON_USEDEP}]
dev-python/joblib[${PYTHON_USEDEP}]
dev-python/keyring[${PYTHON_USEDEP}]
dev-python/keyrings_alt[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pycryptodomex[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/pynwb[${PYTHON_USEDEP}]
dev-python/pyout[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/semantic_version[${PYTHON_USEDEP}]
dev-python/tenacity[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
<dev-python/jsonschema-4[${PYTHON_USEDEP}]
"
# Errors with newer jsonschema, though not a direct dependency, reported upstream:
# https://github.com/dandi/dandi-cli/issues/825
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/anys[${PYTHON_USEDEP}]
dev-python/responses[${PYTHON_USEDEP}]
dev-python/pyfakefs[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}/${PN}-0.28.0-pip-versioncheck.patch"
)
src_prepare() {
if use etelemetry; then
default
else
eapply "${FILESDIR}/${PN}-0.28.0-no-etelemetry.patch"
default
sed -i "/etelemetry/d" setup.cfg
fi
}
python_test() {
export DANDI_TESTS_NONETWORK=1
${EPYTHON} -m pytest -vv || die "Tests failed with ${EPYTHON}"
}

View File

@ -1,77 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="DANDI command line client to facilitate common operations"
HOMEPAGE="https://github.com/dandi/dandi-cli"
SRC_URI="https://github.com/dandi/dandi-cli/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test etelemetry"
#RESTRICT="test"
# Test fail during collection, reported upstream: https://github.com/dandi/dandi-cli/issues/774
RDEPEND="
dev-python/appdirs[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/click-didyoumean[${PYTHON_USEDEP}]
=dev-python/dandischema-0.4*[${PYTHON_USEDEP}]
dev-python/fasteners[${PYTHON_USEDEP}]
dev-python/fscacher[${PYTHON_USEDEP}]
dev-python/humanize[${PYTHON_USEDEP}]
dev-python/joblib[${PYTHON_USEDEP}]
dev-python/keyring[${PYTHON_USEDEP}]
dev-python/keyrings_alt[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pycryptodomex[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/pynwb[${PYTHON_USEDEP}]
dev-python/pyout[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/semantic_version[${PYTHON_USEDEP}]
dev-python/tenacity[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
<dev-python/jsonschema-4[${PYTHON_USEDEP}]
"
# Errors with newer jsonschema, though not a direct dependency, reported upstream:
# https://github.com/dandi/dandi-cli/issues/825
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/anys[${PYTHON_USEDEP}]
dev-python/responses[${PYTHON_USEDEP}]
dev-python/pyfakefs[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}/${PN}-0.28.0-pip-versioncheck.patch"
)
src_prepare() {
if use etelemetry; then
default
else
eapply "${FILESDIR}/${PN}-0.28.0-no-etelemetry.patch"
default
sed -i "/etelemetry/d" setup.cfg
fi
}
python_test() {
export DANDI_TESTS_NONETWORK=1
${EPYTHON} -m pytest -vv || die "Tests failed with ${EPYTHON}"
}

View File

@ -1,13 +0,0 @@
--- a/setup.cfg 2021-10-06 11:44:40.549337707 -0400
+++ b/dsetup.cfg 2021-10-06 11:45:10.236935245 -0400
@@ -30,8 +30,8 @@
appdirs
click
click-didyoumean
- dandischema ~= 0.4.1
- etelemetry >= 0.2.2
+ dandischema
+ etelemetry
fasteners
fscacher
# Specifying != might be what causes pip 19.3.1 first to install hdmf 1.5.1

View File

@ -1,228 +0,0 @@
From 2d273cd96c4512c768cfe398dd2e3b0973afa243 Mon Sep 17 00:00:00 2001
From: "John T. Wodder II" <git@varonathe.org>
Date: Mon, 11 Oct 2021 09:23:57 -0400
Subject: [PATCH] Apply "skipif_no_network" to all relevant tests
---
dandi/cli/tests/test_ls.py | 5 +++++
dandi/tests/fixtures.py | 5 ++---
dandi/tests/skip.py | 5 +++++
dandi/tests/test_dandiapi.py | 4 ++++
dandi/tests/test_dandiarchive.py | 3 ++-
dandi/tests/test_download.py | 5 +++++
dandi/tests/test_utils.py | 5 ++---
tox.ini | 1 +
8 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/dandi/cli/tests/test_ls.py b/dandi/cli/tests/test_ls.py
index b6d6ddf2..35f963ea 100644
--- a/dandi/cli/tests/test_ls.py
+++ b/dandi/cli/tests/test_ls.py
@@ -5,6 +5,8 @@
from dandischema.consts import DANDI_SCHEMA_VERSION
import pytest
+from dandi.tests.skip import mark
+
from ..command import ls
from ...utils import yaml_load
@@ -46,6 +48,7 @@ def load(s):
assert metadata[f] == simple1_nwb_metadata[f]
+@mark.skipif_no_network
def test_ls_dandiset_url():
r = CliRunner().invoke(
ls, ["-f", "yaml", "https://api.dandiarchive.org/api/dandisets/000027"]
@@ -56,6 +59,7 @@ def test_ls_dandiset_url():
assert data[0]["path"] == "000027"
+@mark.skipif_no_network
def test_ls_dandiset_url_recursive():
r = CliRunner().invoke(
ls, ["-f", "yaml", "-r", "https://api.dandiarchive.org/api/dandisets/000027"]
@@ -67,6 +71,7 @@ def test_ls_dandiset_url_recursive():
assert data[1]["path"] == "sub-RAT123/sub-RAT123.nwb"
+@mark.skipif_no_network
def test_ls_path_url():
r = CliRunner().invoke(
ls,
diff --git a/dandi/tests/fixtures.py b/dandi/tests/fixtures.py
index 41dfd05a..d667b750 100644
--- a/dandi/tests/fixtures.py
+++ b/dandi/tests/fixtures.py
@@ -126,9 +126,8 @@ def get_gitrepo_fixture(url, committish=None, scope="session"):
@pytest.fixture(scope=scope)
def fixture():
- # TODO: adapt reproman.tests.skip collection of skipif conditions
- # skipif.no_network()
- # skipif.no_git()
+ skipif.no_network()
+ skipif.no_git()
path = tempfile.mktemp() # not using pytest's tmpdir fixture to not
# collide in different scopes etc. But we
diff --git a/dandi/tests/skip.py b/dandi/tests/skip.py
index 5fbc8cae..7fed7583 100644
--- a/dandi/tests/skip.py
+++ b/dandi/tests/skip.py
@@ -121,6 +121,10 @@ def is_engine_running():
return "docker engine not running", not is_engine_running()
+def no_git():
+ return "Git not installed", shutil.which("git") is None
+
+
# ### END MODIFIED CODE
@@ -157,6 +161,7 @@ def on_windows():
# no_docker_dependencies,
no_docker_commands,
no_docker_engine,
+ no_git,
no_network,
# no_singularity,
no_ssh,
diff --git a/dandi/tests/test_dandiapi.py b/dandi/tests/test_dandiapi.py
index 49344700..03e092fa 100644
--- a/dandi/tests/test_dandiapi.py
+++ b/dandi/tests/test_dandiapi.py
@@ -13,6 +13,7 @@
import pytest
import responses
+from .skip import mark
from .. import dandiapi
from ..consts import (
DRAFT,
@@ -279,6 +280,7 @@ def test_authenticate_bad_key_keyring_good_key_input(
confirm_mock.assert_called_once_with("API key is invalid; enter another?")
+@mark.skipif_no_network
def test_get_content_url(tmp_path):
with DandiAPIClient.for_dandi_instance("dandi") as client:
asset = client.get_dandiset("000027", "draft").get_asset_by_path(
@@ -297,6 +299,7 @@ def test_get_content_url(tmp_path):
fp.write(chunk)
+@mark.skipif_no_network
def test_get_content_url_regex(tmp_path):
with DandiAPIClient.for_dandi_instance("dandi") as client:
asset = client.get_dandiset("000027", "draft").get_asset_by_path(
@@ -309,6 +312,7 @@ def test_get_content_url_regex(tmp_path):
fp.write(chunk)
+@mark.skipif_no_network
def test_get_content_url_follow_one_redirects_strip_query():
with DandiAPIClient.for_dandi_instance("dandi") as client:
asset = client.get_dandiset("000027", "draft").get_asset_by_path(
diff --git a/dandi/tests/test_dandiarchive.py b/dandi/tests/test_dandiarchive.py
index 25da881c..9969a85e 100644
--- a/dandi/tests/test_dandiarchive.py
+++ b/dandi/tests/test_dandiarchive.py
@@ -100,13 +100,14 @@
version_id="draft",
),
),
- (
+ pytest.param(
"DANDI:000027",
DandisetURL(
api_url=known_instances["dandi"].api,
dandiset_id="000027",
version_id="draft", # TODO: why not None?
),
+ marks=mark.skipif_no_network,
),
(
"http://localhost:8000/api/dandisets/000002/versions/draft",
diff --git a/dandi/tests/test_download.py b/dandi/tests/test_download.py
index 2ae12623..f8b9eab5 100644
--- a/dandi/tests/test_download.py
+++ b/dandi/tests/test_download.py
@@ -6,6 +6,7 @@
import pytest
+from .skip import mark
from ..consts import DRAFT
from ..download import download
from ..utils import find_files
@@ -13,6 +14,7 @@
# both urls point to 000027 (lean test dataset), and both draft and "released"
# version have only a single file ATM
+@mark.skipif_no_network
@pytest.mark.parametrize(
"url",
[ # Should go through API
@@ -48,6 +50,7 @@ def test_download_000027(url, tmpdir):
download(url, tmpdir, existing="refresh") # TODO: check that skipped (the same)
+@mark.skipif_no_network
@pytest.mark.parametrize(
"url",
[ # Should go through API
@@ -64,6 +67,7 @@ def test_download_000027_metadata_only(url, tmpdir):
assert sorted(downloads) == ["dandiset.yaml"]
+@mark.skipif_no_network
@pytest.mark.parametrize(
"url",
[ # Should go through API
@@ -80,6 +84,7 @@ def test_download_000027_assets_only(url, tmpdir):
assert sorted(downloads) == ["sub-RAT123", op.join("sub-RAT123", "sub-RAT123.nwb")]
+@mark.skipif_no_network
@pytest.mark.parametrize("resizer", [lambda sz: 0, lambda sz: sz // 2, lambda sz: sz])
@pytest.mark.parametrize("version", ["0.210831.2033", DRAFT])
def test_download_000027_resume(tmp_path, resizer, version):
diff --git a/dandi/tests/test_utils.py b/dandi/tests/test_utils.py
index 79973640..8e418d0f 100644
--- a/dandi/tests/test_utils.py
+++ b/dandi/tests/test_utils.py
@@ -8,6 +8,7 @@
import responses
from semantic_version import Version
+from .skip import mark
from .. import __version__
from ..consts import DandiInstance, known_instances
from ..exceptions import BadCliVersionError, CliVersionTooOldError
@@ -325,9 +326,7 @@ def test_get_instance_actual_dandi():
if "DANDI_REDIRECTOR_BASE" in os.environ:
using_docker = pytest.mark.usefixtures("local_dandi_api")
else:
-
- def using_docker(f):
- return f
+ using_docker = mark.skipif_no_network
@pytest.mark.redirector
diff --git a/tox.ini b/tox.ini
index 132d89fd..5393d761 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,6 +4,7 @@ envlist = lint,py3
[testenv]
setenv =
DANDI_ALLOW_LOCALHOST_URLS=1
+passenv = DANDI_*
extras = test
commands =
# Using pytest-cov instead of using coverage directly leaves a bunch of