faitout
faitout copied to clipboard
Give access to volatile PostgreSQL database for unit-tests.
faitout
:Author: Aurélien Bompard [email protected] :Author: Pierre-Yves Chibon [email protected]
faitout is a Free and Open-Source alternative to http://www.postgression.com/ This is flask application generating PostgreSQL databases on the fly and for a limited time, allowing people to test their code against an actual PostgreSQL database.
Get this project:
Source: https://github.com/fedora-infra/faitout
Instance: http://faitout.fedorainfracloud.org/
Dependencies:
python <http://www.python.org>_python-flask <http://flask.pocoo.org/>_python-psycopg2 <http://www.initd.org/psycopg/>_python-sqlalchemy <http://www.sqlalchemy.org/>_
Dependencies for test:
python-nose <http://nose.readthedocs.org/en/latest/>_python-mock <http://www.voidspace.org.uk/python/mock/>_python-coverage <http://nedbatchelder.com/code/coverage/>_
Running a development instance:
Clone the source::
git clone https://github.com/fedora-infra/faitout.git
Create the database scheme::
python createdb.py
Run the server::
python runserver.py
You should be able to access the server at http://localhost:5000
Testing:
This project contains unit-tests allowing you to check if your server has all the dependencies correctly set.
To run them::
./runtests.sh
.. note:: To stop the test at the first error or failure you can try:
::
./runtests.sh -x
.. note:: To know which database system (sqlite or postgres via faitout itself) it is using, use the -s flag
::
./runtests.sh -s
License:
This project is licensed GPLv3+.