| Conditions | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | # -*- coding: utf-8 -*- |
||
| 19 | def test_local_repo_with_no_context_raises(user_config_data): |
||
| 20 | """A repository without a cookiecutter.json should raise a |
||
| 21 | `RepositoryNotFound` exception. |
||
| 22 | """ |
||
| 23 | with pytest.raises(exceptions.RepositoryNotFound): |
||
| 24 | repository.determine_repo_dir( |
||
| 25 | 'tests/fake-repo-bad', |
||
| 26 | abbreviations={}, |
||
| 27 | clone_to_dir=user_config_data['cookiecutters_dir'], |
||
| 28 | checkout=None, |
||
| 29 | no_input=True |
||
| 30 | ) |
||
| 31 |