Permalink
Browse files

Fix test failure due to favicon.ico being opened by DjangoCookieTestC…

…ase.check_paths().
  • Loading branch information...
audreyr committed Nov 7, 2015
1 parent 1c1ca39 commit 7e8f58d6ec472f6e5effc291f00471d32d64c686
Showing with 8 additions and 5 deletions.
  1. +1 −0 requirements.txt
  2. +7 −5 tests/base.py
View
@@ -1,6 +1,7 @@
cookiecutter==1.2.1
flake8==2.5.0
sh
binaryornot==0.4.0
# Debugging
# -------------------------------------
View
@@ -4,6 +4,7 @@
import unittest
from os.path import exists, dirname, join
from binaryornot.check import is_binary
import sh
from cookiecutter.main import cookiecutter
@@ -26,11 +27,12 @@ def check_paths(self, paths):
# Assert that no match is found in any of the files
for path in paths:
for line in open(path, 'r'):
match = re_obj.search(line)
self.assertIsNone(
match,
"cookiecutter variable not replaced in {}".format(path))
if not is_binary(path):
for line in open(path, 'r'):
match = re_obj.search(line)
self.assertIsNone(
match,
"cookiecutter variable not replaced in {}".format(path))
def generate_project(self, extra_context=None):
ctx = {

0 comments on commit 7e8f58d

Please sign in to comment.