Skip to content

Introduction

Site used

I have chosen to use the example on MDN as this contains comprehensive doumentation, repo and testing examples.

I have also found it to be the most suitable App for teaching UnitTest and PyTest for Django.

I have added PyTests and a range of other areas of testing.

Source: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django.

Repo: https://github.com/Python-Test-Engineer/PyTest-Django-Full-Stack.

I have added additonal tests, mostly using PyTest, as well as more comments and console formatting with Rich and PyBoxen.

UML

Asides

Layers of test

  • DB:SQL Schema
  • DB:ORM Schema
  • Models
  • Views
  • Forms
  • Misc testing of Middleware, Admin, Template Tags etc.
  • API
  • E2E

Files are docs

The files are heavily documented so that these are the articles on each topic.

This book has its own articles that link to videos and/or code files.