Writing your first Django test using pytest-django
Pybites Pybites
4.34K subscribers
2,856 views
51

 Published On Jun 22, 2023

Today we show you how to get running with pytest-django to be able to write pytest tests in Django.

We install the plugin, create the required pytest.ini setup and write a first test for a single Django crud app. You will see some debugging and copilot as well as we go ...

Links:
Code we wrote: https://github.com/pybites/django-sta...
Pytest-django docs: https://pytest-django.readthedocs.io/...
Fixtures that come with pytest-django: https://pytest-django.readthedocs.io/...
Example defining DB setting explicitly: https://github.com/PyBites-Open-Sourc...
Pytest fixtures article: https://pybit.es/pytest-fixtures.html

---
Learn more about Pybites / what we do: https://pybit.es

Get our weekly developer / mindset emails: https://pybit.es/friends/

Join our Slack community: https://pybit.es/community/

And last but not least, we appreciate any feedback to make our YouTube content better 💡
https://form.jotform.com/230941798741062 🙏

show more

Share/Embed