From 2c388a30450d65a4d20715f5bab7819884268af5 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 27 Apr 2025 13:31:49 +0200 Subject: [PATCH] =?utf8?q?=E2=99=BB=EF=B8=8F=20Update=20`tests/test=5Fsele?= =?utf8?q?ct=5Fgen.py`,=20pass=20environment=20variables,=20needed=20for?= =?utf8?q?=20NixOS=20nixpkgs=20(#969)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- 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 6d578f77..e14200d5 100644 --- a/tests/test_select_gen.py +++ b/tests/test_select_gen.py @@ -1,3 +1,4 @@ +import os import subprocess import sys from pathlib import Path @@ -9,9 +10,11 @@ root_path = Path(__file__).parent.parent @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, -- 2.47.2