Skip to content
/ ut_demo Public

Code samples for Intro to Unit Tests talk

Notifications You must be signed in to change notification settings

weffey/ut_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Code samples for Intro to Unit Tests talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages