Skip to content

Commit

Permalink
Merge pull request cookiecutter#515 from hackebrot/test-ensure-dir-is…
Browse files Browse the repository at this point in the history
…-templated

Coverage for ensure_dir_is_templated
  • Loading branch information
audreyfeldroy committed Sep 18, 2015
2 parents e04daba + 346d867 commit df76d74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_generate_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
from cookiecutter import utils


@pytest.mark.parametrize('invalid_dirname', ['', '{foo}', '{{foo', 'bar}}'])
def test_ensure_dir_is_templated_raises(invalid_dirname):
with pytest.raises(exceptions.NonTemplatedInputDirException):
generate.ensure_dir_is_templated(invalid_dirname)


@pytest.fixture(scope='function')
def remove_additional_folders(request):
"""
Expand Down

0 comments on commit df76d74

Please sign in to comment.