A demo project for the blogpost "Beautiful asserts with your Django Test Client".
- At least python 3.9
pyenv virtualenv 3.9 beautiful-asserts # or your alternative to create a virtualenv
pyenv activate beautiful-asserts
pip install poetry
poetry installOptional, when you're not creating the virtualenv yourself poetry will do it for you. You can activate the poetry virtualenv like so:
source $(poetry env info --path)/bin/activateRun the development server to see the example view and form:
manage.py runserverNow browse to http://localhost:8000
Run the testsuite:
pytest