Skip Navigation

How to test with Django and pytest fixtures

micro.webology.dev How to test with Django and pytest fixtures

Here are some notes on how I like to write tests for a Django app that tests a model down to a view. Django Model + pytest Fixture This part is a mouthful, but I prefer to use the Model Bakery library to automatically create instances of Django models (aka a fixture) with good test data instead of m...

0
0 comments