| Conditions | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # -*- coding: utf-8 -*- |
||
| 8 | def test_should_find_existing_cookiecutter(user_config_data): |
||
| 9 | template = 'cookiecutter-pytest-plugin' |
||
| 10 | cookiecutters_dir = user_config_data['cookiecutters_dir'] |
||
| 11 | cloned_template_path = os.path.join(cookiecutters_dir, template) |
||
| 12 | os.mkdir(cloned_template_path) |
||
| 13 | io.open(os.path.join(cloned_template_path, 'cookiecutter.json'), 'w') |
||
| 14 | |||
| 15 | project_dir = repository.determine_repo_dir( |
||
| 16 | template, |
||
| 17 | abbreviations={}, |
||
| 18 | clone_to_dir=cookiecutters_dir, |
||
| 19 | checkout=None, |
||
| 20 | no_input=True, |
||
| 21 | ) |
||
| 22 | |||
| 23 | assert cloned_template_path == project_dir |
||
| 24 |