Skip to content

Commit 8017439

Browse files
committed
chore: manually set environ variable in pytest demos_folder fixture so that it remains isolated from CI interactions
1 parent 58f3520 commit 8017439

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Fixtures used in all tests for cookiecutter-robust-python."""
2-
2+
import os
33
import subprocess
44
from pathlib import Path
55
from typing import Any
@@ -21,7 +21,9 @@
2121
@pytest.fixture(scope="session")
2222
def demos_folder(tmp_path_factory: TempPathFactory) -> Path:
2323
"""Temp Folder used for storing demos while testing."""
24-
return tmp_path_factory.mktemp("demos")
24+
path: Path = tmp_path_factory.mktemp("demos")
25+
os.environ["COOKIECUTTER_ROBUST_PYTHON__DEMOS_CACHE_FOLDER"] = str(path)
26+
return path
2527

2628

2729
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)