@@ 30-43 (lines=14) @@ | ||
27 | return subdir_template_path |
|
28 | ||
29 | ||
30 | def test_should_find_existing_cookiecutter( |
|
31 | template, user_config_data, cloned_cookiecutter_path): |
|
32 | ||
33 | project_dir, cleanup = repository.determine_repo_dir( |
|
34 | template, |
|
35 | abbreviations={}, |
|
36 | clone_to_dir=user_config_data['cookiecutters_dir'], |
|
37 | checkout=None, |
|
38 | no_input=True, |
|
39 | directory='my-dir', |
|
40 | ) |
|
41 | ||
42 | assert cloned_cookiecutter_path == project_dir |
|
43 | assert not cleanup |
|
44 | ||
45 | ||
46 | def test_local_repo_typo(template, user_config_data, cloned_cookiecutter_path): |
@@ 26-37 (lines=12) @@ | ||
23 | return cloned_template_path |
|
24 | ||
25 | ||
26 | def test_should_find_existing_cookiecutter( |
|
27 | template, user_config_data, cloned_cookiecutter_path): |
|
28 | project_dir, cleanup = repository.determine_repo_dir( |
|
29 | template, |
|
30 | abbreviations={}, |
|
31 | clone_to_dir=user_config_data['cookiecutters_dir'], |
|
32 | checkout=None, |
|
33 | no_input=True, |
|
34 | ) |
|
35 | ||
36 | assert cloned_cookiecutter_path == project_dir |
|
37 | assert not cleanup |
|
38 |