Skip to content

Commit

Permalink
make tests succeed on Django-1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mrunge committed Oct 17, 2014
1 parent 2c5dd9d commit fc83133
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_pyscss/utils.py
Expand Up @@ -13,6 +13,7 @@ def find_all_files(glob):
"""
for finder in finders.get_finders():
for path, storage in finder.list([]):
if fnmatch.fnmatchcase(os.path.join(storage.prefix or '', path),
if fnmatch.fnmatchcase(os.path.join(getattr(storage, 'prefix', '')
or '', path),
glob):
yield path, storage
4 changes: 4 additions & 0 deletions testproject/runtests.py
Expand Up @@ -3,6 +3,10 @@
import sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.testproject.settings")

import django
if hasattr(django, 'setup'):
django.setup()

from django.test.utils import get_runner
from django.conf import settings

Expand Down

0 comments on commit fc83133

Please sign in to comment.