Total Complexity | 2 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """Testing invalid cookiecutter template repositories.""" |
||
2 | import pytest |
||
3 | |||
4 | from cookiecutter import exceptions, main |
||
5 | |||
6 | |||
7 | def test_should_raise_error_if_repo_does_not_exist(): |
||
8 | """Cookiecutter invocation with non-exist repository should raise error.""" |
||
9 | with pytest.raises(exceptions.RepositoryNotFound): |
||
10 | main.cookiecutter('definitely-not-a-valid-repo-dir') |
||
11 |