Skip to content
Browse files

Fixed to use correct DJANGO_SETTINGS_MODULE and argv

  • Loading branch information
xaralis committed Feb 9, 2012
1 parent 940e2b0 commit 17087f5bd5ad740c1d689aa2065cecab49d8cb53
Showing with 9 additions and 19 deletions.
  1. +3 −11 INSTALL
  2. +0 −4 test_ella/
  3. +6 −4 test_ella/
@@ -17,18 +17,10 @@ For development, we recommend use virtualenv (and wrapper) like this:
$ git clone git://
$ cd ella
$ mkvirtualenv ella
$ pip install -r requirements/base.txt -r requirements/with-markup.txt \
-r requirements/with-comments.txt -r requirements/testing.txt

$ pip install -r dev_requirements.txt

Then you can test this installation:

$ ./tests/unit_project/

And start playing with example project:

$ cd tests/example_project
$ ./ syncdb
$ ./ runserver
$ cd test_ella
$ ./test_ella/

@@ -5,13 +5,9 @@
If You're looking for example project, take a look into example_project directory.
import os

test_runner = None
old_config = None

os.environ['DJANGO_SETTINGS_MODULE'] = 'test_ella.settings'

def setup():
global test_runner
global old_config
@@ -6,17 +6,19 @@

import sys
import os

from os.path import abspath, dirname

import nose

def run_all(argv=None):
if argv is None:
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_ella.settings'

if len(argv) == 1: # only the command itself is in argv

This comment has been minimized.

Copy link

HonzaKral Feb 10, 2012


This breaks running the test suite as python test which is the standard for python packages.

Also nose has no --with-django option, that was for django-sane-testing which ella no longer uses.

This comment has been minimized.

Copy link

xaralis Feb 10, 2012

Author Member

I'll try to fix it. There must be something wrong since without it, the tests won't run as expected without setting the DJANGO_SETTINGS_MODULE by hand. I'll make this work both ways.

This comment has been minimized.

Copy link

HonzaKral via email Feb 10, 2012

argv = [
'--with-coverage', '--cover-package=ella', '--cover-erase',
'--nocapture', '--nologcapture',


0 comments on commit 17087f5

Please sign in to comment.
You can’t perform that action at this time.