From 0cc452137205a1e500e81c575595b7beda82d634 Mon Sep 17 00:00:00 2001 From: wisp3rwind <17089248+wisp3rwind@users.noreply.github.com> Date: Mon, 31 Jan 2022 20:31:57 +0100 Subject: [PATCH] tests: allow passing the INTEGRATION_TEST variable from the commandline this allows to run INTEGRATION_TEST=1 tox -e test/test_.py which is very useful when testing locally. Otherwise, tox will clean the environment, such that INTEGRATION_TEST will not be passed to the test runner. --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 5f9de07f6..95f250f96 100644 --- a/tox.ini +++ b/tox.ini @@ -17,6 +17,7 @@ files = beets beetsplug beet test setup.py docs deps = {test,cov}: {[_test]deps} lint: {[_lint]deps} +passenv = INTEGRATION_TEST commands = test: python -bb -m pytest -rs {posargs} cov: coverage run -m pytest -rs {posargs}