Demonstrate use of fixture
with Flask-SQLAlchemy and Flask-Testing.
February 13, 2011
Ron DuPlain <ron.duplain@gmail.com>
Post any feedback to: flask@librelist.org
Get this gist:
git clone git://gist.github.com/824472.git Flask-SQLAlchemy-Fixture cd Flask-SQLAlchemy-Fixture
To run, activate a virtualenv and:
python setup.py develop python test_models.py
If you don't like DeprecationWarning, you can:
python -W ignore::DeprecationWarning test_models.py
You can also:
python manage.py fixtures sqlite3 app.db
In sqlite3:
.schema select * from spams; select * from eggs;
If you need a license for this code, use BSD.