Conditions | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | # -*- coding: utf-8 -*- |
||
39 | def test_local_repo_typo(): |
||
40 | """An unknown local repository should raise a `RepositoryNotFound` |
||
41 | exception. |
||
42 | """ |
||
43 | with pytest.raises(exceptions.RepositoryNotFound) as err: |
||
44 | repository.determine_repo_dir( |
||
45 | 'tests/unknown-repo', |
||
46 | abbreviations={}, |
||
47 | clone_to_dir=None, |
||
48 | checkout=None, |
||
49 | no_input=True |
||
50 | ) |
||
51 | |||
52 | assert str(err.value) == ( |
||
53 | 'The repository tests/unknown-repo could not be located or does not ' |
||
56 |