828 B
828 B
Chapter 1. Getting Django Set Up Using a Functional Test
Write tests first, implement coming later.
Before continue, read book and finish following:
- Installing Firefox, Git, geckodriver via apt
- Create conda environment to install "django<1.12" "selenium<4"
This chapter is about setting up working environment, as python tdd book is built around testing django testing framework
Steps of first simple test case
- Create a simple functional test (FT)
functional_test.py
that verify browser title - Run the FT script, expected to fail, as
http://localhost:8000
hasn't started - Getting Django Up and Running via
$ django-admin.py startproject superlists .
- Run Django server via
python manage.py runserver
- Activate virtulenv, and running FT again. Pass
Final step, commit above src changes