tests.test_repo_not_found   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_should_raise_error_if_repo_does_not_exist() 0 3 2
1
# -*- coding: utf-8 -*-
2
3
"""Testing invalid cookiecutter template repositories."""
4
5
import pytest
6
7
from cookiecutter import main, exceptions
8
9
10
def test_should_raise_error_if_repo_does_not_exist():
11
    with pytest.raises(exceptions.RepositoryNotFound):
12
        main.cookiecutter('definitely-not-a-valid-repo-dir')
13