Skip to content

Commit 2c388a3

Browse files
♻️ Update tests/test_select_gen.py, pass environment variables, needed for NixOS nixpkgs (#969)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f42b444 commit 2c388a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_select_gen.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import subprocess
23
import sys
34
from pathlib import Path
@@ -9,9 +10,11 @@
910

1011
@needs_py39
1112
def test_select_gen() -> None:
13+
env = os.environ.copy()
14+
env["CHECK_JINJA"] = "1"
1215
result = subprocess.run(
1316
[sys.executable, "scripts/generate_select.py"],
14-
env={"CHECK_JINJA": "1"},
17+
env=env,
1518
check=True,
1619
cwd=root_path,
1720
capture_output=True,

0 commit comments

Comments
 (0)