Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.04 KB

readme.md

File metadata and controls

57 lines (43 loc) · 1.04 KB

Setup

Assumes you have the following installed:

  1. Create a virtual environment called ut_demo
$ mkvirtualenv ut_demo
  1. Grab the repo from Github
(ut_demo)$ git clone https://github.com/weffey/lwc_unit_tests.git
  1. Enter the folder
(ut_demo)$ cd lwc_unit_tests
  1. Install the requirements
(ut_demo)$ pip install -r requirements.txt
  1. Setup the database
(ut_demo)$ python db_setup.py
  1. Start the falcon app
(ut_demo)$ gunicorn --reload look.app
  1. Confirm the Falcon app comes up
$ curl -v localhost:8000
  1. Run the tests
nosetests

Branches

  • step-0-setup: App starts, 2 tests pass
  • step-1-input-validation: App starts, 2 tests pass, 2 tests fail
  • step-2-input-sanitization: App starts, 4 tests pass, 2 tests fail
  • step-3-logging-in: App starts, 6 tests pass, 1 test fails