updated tests
parent
6e5f153cd4
commit
b3dc693eb0
|
@ -1,4 +1,5 @@
|
|||
env
|
||||
venv
|
||||
temp
|
||||
tmp
|
||||
__pycahe__
|
||||
|
@ -6,4 +7,5 @@ __pycahe__
|
|||
*.pyc
|
||||
*.sqlite
|
||||
*.coverage
|
||||
.DS_Store
|
||||
.DS_Store
|
||||
env.sh
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue