/django_pytest_tutorial

An example for writing unit tests for a Django app with Pytest.

Primary LanguagePython

Django Pytest Tutorial

Write unit tests for a django app that uses a custom user model.

Use parametrize and fixtures to test urls as well as signup/login/logout.

Relevant modules:

  • pytest
  • pytest-django
  • pytest-cov