Skip to content

Commit

Permalink
Use sample application for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbr committed Feb 15, 2014
1 parent b274a82 commit f04f774
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 4 additions & 6 deletions tests/test_sample_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@

@pytest.fixture
def app():
from flask import Flask
from flask_bootstrap import Bootstrap
import sys
sys.path.append('.')

app = Flask(__name__)
from sample_application import create_app

Bootstrap(app)

return app
return create_app()


@pytest.fixture
Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
envlist = py27,py33
[testenv]
commands=py.test
deps=pytest
deps=
pytest
# for sample_application
flask-appconfig
flask-wtf

0 comments on commit f04f774

Please sign in to comment.