updated tests

main
Michael Herman 2015-04-16 16:47:07 -06:00
parent 6e5f153cd4
commit b3dc693eb0
4 changed files with 10 additions and 7 deletions

4
.gitignore vendored
View File

@ -1,4 +1,5 @@
env
venv
temp
tmp
__pycahe__
@ -6,4 +7,5 @@ __pycahe__
*.pyc
*.sqlite
*.coverage
.DS_Store
.DS_Store
env.sh

View File

@ -1,10 +1,11 @@
# Config file for testing at travis-ci.org
language: python
python:
- "3.4"
- "2.7"
install: "pip install -r requirements.txt"
install:
- pip install -r requirements.txt
script: "python manage.py test"
script:
- python manage.py test

View File

@ -17,7 +17,7 @@ $ export APP_SETTINGS="project.config.DevelopmentConfig"
or
```sh
$ export APP_SETTINGS="config.ProductionConfig"
$ export APP_SETTINGS="project.config.ProductionConfig"
```
### Create DB

View File

@ -10,7 +10,7 @@ from project.models import User
class BaseTestCase(TestCase):
def create_app(self):
app.config.from_object('config.TestingConfig')
app.config.from_object('project.config.TestingConfig')
return app
def setUp(self):