Skip to content

Commit

Permalink
Add basic testing infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Dec 10, 2012
1 parent fd6345a commit f4e661b
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 23 deletions.
10 changes: 10 additions & 0 deletions manage.py
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testsettings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)
File renamed without changes.
23 changes: 0 additions & 23 deletions tests/__init__.py

This file was deleted.

12 changes: 12 additions & 0 deletions testsettings.py
@@ -0,0 +1,12 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}

INSTALLED_APPS = (
'templated_email',
)

SECRET_KEY = "notimportant"
32 changes: 32 additions & 0 deletions tox.ini
@@ -0,0 +1,32 @@
[tox]
envlist=
py26-django13,
py26-django14,
py27-django13,
py27-django14,

[testenv]
commands=
python manage.py test

# Build configurations...

[testenv:py26-django13]
basepython=python2.6
deps=
django==1.3

[testenv:py27-django13]
basepython=python2.7
deps=
django==1.3

[testenv:py26-django14]
basepython=python2.6
deps=
django==1.4

[testenv:py27-django14]
basepython=python2.7
deps=
django==1.4

0 comments on commit f4e661b

Please sign in to comment.