Added manage.py for testing purposes

This commit is contained in:
Alen Mujezinovic 2013-01-17 16:12:52 +00:00
parent 3785b369f2
commit 3667171d72
5 changed files with 17 additions and 7 deletions

View File

@ -15,5 +15,5 @@ branches:
only:
- master
- develop
script: tests/test.sh
script: ./test.sh

10
manage.py Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)

5
test.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
python manage.py test provider oauth2

View File

@ -1,5 +0,0 @@
#!/bin/bash
PYTHONPATH=$PWD/../:$PYTHONPATH
django-admin.py test provider oauth2 --settings tests.settings

View File

@ -7,7 +7,7 @@ setenv =
PYTHONPATH = {toxinidir}
commands =
pip install -q -r requirements.txt --use-mirrors
{toxinidir}/tests/test.sh
{toxinidir}/test.sh
deps =
[testenv:py2.7-django1.5]