Assumes you have the following installed:
- Python 2.7x
- Get started with a Virtual Environment
- SQLite
- Create a virtual environment called
ut_demo
$ mkvirtualenv ut_demo
- Grab the repo from Github
(ut_demo)$ git clone https://github.com/weffey/lwc_unit_tests.git
- Enter the folder
(ut_demo)$ cd lwc_unit_tests
- Install the requirements
(ut_demo)$ pip install -r requirements.txt
- Setup the database
(ut_demo)$ python db_setup.py
- Start the falcon app
(ut_demo)$ gunicorn --reload look.app
- Confirm the Falcon app comes up
$ curl -v localhost:8000
- Run the tests
nosetests
step-0-setup
: App starts, 2 tests passstep-1-input-validation
: App starts, 2 tests pass, 2 tests failstep-2-input-sanitization
: App starts, 4 tests pass, 2 tests failstep-3-logging-in
: App starts, 6 tests pass, 1 test fails