Conditions | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | # -*- coding: utf-8 -*- |
||
20 | def test_local_repo_with_no_context_raises(): |
||
21 | """A local repository without a cookiecutter.json should raise a |
||
22 | `RepositoryNotFound` exception. |
||
23 | """ |
||
24 | with pytest.raises(exceptions.RepositoryNotFound) as err: |
||
25 | repository.determine_repo_dir( |
||
26 | 'tests/fake-repo-bad', |
||
27 | abbreviations={}, |
||
28 | clone_to_dir=None, |
||
29 | checkout=None, |
||
30 | no_input=True |
||
31 | ) |
||
32 | |||
33 | assert str(err.value) == ( |
||
34 | 'The repository tests/fake-repo-bad could not be located or does not ' |
||
56 |