Demonstrate use of fixture
with Flask-SQLAlchemy and Flask-Testing.
February 13, 2011
Ron DuPlain <[email protected]>
Post any feedback to: [email protected]
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.