Kshitiz Mahajan
Demonstrate use of fixture
with Flask-SQLAlchemy and Flask-Testing.
$ git clone [email protected]:kshitizlondon/Python-Flask-SQLAlchemy-Fixtures.git
$ cd Python-Flask-SQLAlchemy-Fixtures
$ python3 -m venv bac-env
$ source bac-env/bin/activate
$ python setup.py develop
$ python test_models.py
$ python -W ignore::DeprecationWarning test_models.py
$ python manage.py fixtures
$ sqlite3 app.db
$sqlite3 app.db
$ .schema
$ select * from spams;
$ select * from eggs;
Also install Sqlite3 on your local machine if not using any Virtualization like docker, vagrant, chef etc ::