diff --git a/tests/function/test_cc_create.py b/tests/function/test_cc_create.py index e473401..8a85c10 100644 --- a/tests/function/test_cc_create.py +++ b/tests/function/test_cc_create.py @@ -782,8 +782,9 @@ 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 @@ -791,7 +792,7 @@ def 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) diff --git a/tests/function/test_cc_make.py b/tests/function/test_cc_make.py index 23a74b9..05cfdf3 100644 --- a/tests/function/test_cc_make.py +++ b/tests/function/test_cc_make.py @@ -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: @@ -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