Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/function/test_cc_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,16 +782,17 @@ def test_cc_create(
Test creation of repos with cookiecutter.
"""

# The template directory, using the git submodule
template_dir = os.path.abspath(
# The template repo
# template_ref = "https://github.com/andy-maier/cookiecutter-python"
template_ref = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", ".."))

# Create a named temporary directory
tmp_dir = tempfile.mkdtemp(prefix="test_cc_create_")

try:
parm_args = [f"{name}={value}" for name, value in input_parms.items()]
args = ["cookiecutter", "--no-input", template_dir] + parm_args
args = ["cookiecutter", "--no-input", template_ref] + parm_args

result = run_args(args=args, cwd=tmp_dir)

Expand Down
7 changes: 4 additions & 3 deletions tests/function/test_cc_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ def test_cc_make(
Test running make commands in a repo created by cookiecutter.
"""

# The template directory, using the git submodule
template_dir = os.path.abspath(
# The template repo
# template_ref = "https://github.com/andy-maier/cookiecutter-python"
template_ref = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", ".."))

try:
Expand All @@ -106,7 +107,7 @@ def test_cc_make(
# Create the repo using cookiecutter
parm_args = [f"{name}={value}" for name, value in input_parms.items()]
result = run_args(
args=["cookiecutter", "--no-input", template_dir] + parm_args,
args=["cookiecutter", "--no-input", template_ref] + parm_args,
cwd=tmp_dir, check=True)

# Initialize the repo for git and create a first commit so that
Expand Down
Loading