Skip to content

Commit

Permalink
Add sandbox to python path for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Vetter committed Sep 19, 2013
1 parent 7190d6f commit 6bc8393
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

from django.conf import settings

Expand All @@ -9,6 +10,8 @@
)
sandbox = lambda x: location("sandbox/%s" % x)

sys.path.insert(0, location('sandbox'))


def pytest_configure():
from fancypages.defaults import FANCYPAGES_SETTINGS
Expand Down Expand Up @@ -66,6 +69,7 @@ def pytest_configure():
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'blog',
] + fp.get_required_apps() + fp.get_fancypages_apps(),
AUTHENTICATION_BACKENDS=(
'django.contrib.auth.backends.ModelBackend',
Expand Down

0 comments on commit 6bc8393

Please sign in to comment.