Skip to content

Commit

Permalink
fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Jan 3, 2014
1 parent 6e84527 commit 3876985
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conftest.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ def pytest_configure(config):
if not settings.configured: if not settings.configured:
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'


try:
from django.apps import AppConfig
import django

django.setup()
except ImportError:
pass



def runtests(args=None): def runtests(args=None):
import pytest import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/functional/test_merge.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test_success(self):


url = reverse('admin:auth_user_changelist') url = reverse('admin:auth_user_changelist')
test_file = os.path.join(os.path.dirname(__file__), 'casper-tests/merge.js') test_file = os.path.join(os.path.dirname(__file__), 'casper-tests/merge.js')
assert os.path.exists(test_file)
self.assertTrue(self.casper(test_file, self.assertTrue(self.casper(test_file,
url=url, url=url,
ids=ids, ids=ids,
Expand Down

0 comments on commit 3876985

Please sign in to comment.