Testing Workshop for Women Who Code 2017/7/29
To start, you will need these if you haven't installed them already:
You might need libmysqlclient-dev if you're stuck.
linux>> sudo apt-get install libmysqlclient-dev
The Windows equivalent can be downloaded at: https://dev.mysql.com/downloads/connector/c/
You'll also need sqlite3 installed:
linux>> sudo apt-get install sqlite3
Windows & Mac: https://www.sqlite.org/download.html
Run these commands in the same project directory:
shell>> python bootstrap.py
shell>> bin/buildout
shell>> bin/manage migrate
To run the web server:
shell>> bin/manage runserver
To view in your browser:
localhost:8000/
To look into your database:
shell>> bin/manage dbshell
Write your Python test code in the 'tests' folder.
To run your test:
shell>> bin/manage test tests_wwcw7 -v 2
If you have a pdb debug line in your test code:
shell>> bin/manage test tests_wwcw7