Skip to content

Commit

Permalink
Merge pull request #153 from nephila/feature/tests_07
Browse files Browse the repository at this point in the history
Tests update
  • Loading branch information
yakky committed Jan 4, 2015
2 parents afd377a + c34595e commit 84f0dbb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
5 changes: 1 addition & 4 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# -*- coding: utf-8 -*-
from .main import TestMain
from .config import TestConfig
from .django import TestDjango
# -*- coding: utf-8 -*-
2 changes: 2 additions & 0 deletions tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ def tearDown(self):
self._remove_project_dir()
self.stdout = None
self.stderr = None
sys.path = self.syspath

def setUp(self):
self.stdout = StringIO()
self.stderr = StringIO()
self._create_project_dir()
self.syspath = sys.path


class IsolatedTestClass(BaseTestClass):
Expand Down
1 change: 0 additions & 1 deletion tests/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import os
import sys
import tempfile

from mock import patch
from six import StringIO
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ envlist = py26, py27, py33, py34

[testenv]
recreate=True
install_command = ./tox_pip.sh {opts} {packages}
setenv =
PYTHONPATH={toxinidir}:{toxinidir}/djangocms-installer
commands = {env:COMMAND:python} setup.py test
Expand Down
3 changes: 3 additions & 0 deletions tox_pip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
pip install 'setuptools<8.0' 'pip<6'
pip install $@

0 comments on commit 84f0dbb

Please sign in to comment.