Skip to content

maerteijn/beautiful-asserts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beautiful Asserts

A demo project for the blogpost "Beautiful asserts with your Django Test Client".

Development setup

Requirements

  • At least python 3.9

Install the django project with poetry

pyenv virtualenv 3.9 beautiful-asserts  # or your alternative to create a virtualenv
pyenv activate beautiful-asserts
pip install poetry
poetry install

Optional, 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/activate

Development server

Run the development server to see the example view and form:

manage.py runserver

Now browse to http://localhost:8000

Test

Run the testsuite:

pytest

About

A demo project for the blogpost "Beautiful asserts with your Django Test Client".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published