From 081ea1d2b7a63aae821d0b2ce8ad4181d3401d6c Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Thu, 28 Mar 2024 07:27:31 -0700 Subject: [PATCH] Ignore environmental LAUNCHABLE_BASE_URL When testing CLI with a locally run server, we use this environment variable. This affects the behaviour of unit tests, which is undesirable --- Pipfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pipfile b/Pipfile index 4a0a67b07..fb4bfc215 100644 --- a/Pipfile +++ b/Pipfile @@ -38,6 +38,6 @@ format = "/bin/bash -c 'isort -l 130 --balanced launchable/*.py tests/*.py && au install = "pip install -U ." lint = "flake8 --count --ignore=C901,E741,F401 --show-source --max-line-length=130 --statistics launchable/ tests/" lint-warn = "flake8 --count --exit-zero --max-complexity=15 --max-line-length=130 --statistics launchable/ tests/" -test = "python -m unittest" -test-xml = "python -m test-runner" +test = "/bin/bash -c 'LAUNCHABLE_BASE_URL= exec python -m unittest'" +test-xml = "/bin/bash -c 'LAUNCHABLE_BASE_URL= exec python -m test-runner'" type = "mypy launchable tests"