From 42d33049e9e4182b78914ad41d1e3d30125126ba Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 4 Jun 2024 12:19:30 +0200 Subject: [PATCH 1/2] test_select_gen: passthru environment variables black and jinja2 may only be available via VIRTUAL_ENV or PYTHONPATH --- tests/test_select_gen.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_select_gen.py b/tests/test_select_gen.py index 6d578f7708..c890ecd56a 100644 --- a/tests/test_select_gen.py +++ b/tests/test_select_gen.py @@ -1,5 +1,6 @@ import subprocess import sys +import os from pathlib import Path from .conftest import needs_py39 @@ -9,9 +10,11 @@ @needs_py39 def test_select_gen() -> None: + env = os.environ.copy() + env["CHECK_JINJA"] = "1" result = subprocess.run( [sys.executable, "scripts/generate_select.py"], - env={"CHECK_JINJA": "1"}, + env=env, check=True, cwd=root_path, capture_output=True, From 77b16c5a092a1920b74bec0f63cf0cc9512b0751 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 10:20:48 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20for?= =?UTF-8?q?mat=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_select_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_select_gen.py b/tests/test_select_gen.py index c890ecd56a..e14200d513 100644 --- a/tests/test_select_gen.py +++ b/tests/test_select_gen.py @@ -1,6 +1,6 @@ +import os import subprocess import sys -import os from pathlib import Path from .conftest import needs_py39