Writing your first Django test using pytest-django
Вставка
- Опубліковано 3 гру 2024
- 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: github.com/pyb...
Pytest-django docs: pytest-django....
Fixtures that come with pytest-django: pytest-django....
Example defining DB setting explicitly: github.com/PyB...
Pytest fixtures article: pybit.es/pytes...
---
Learn more about Pybites / what we do: pybit.es
Get our weekly developer / mindset emails: pybit.es/friends/
Join our Slack community: pybit.es/commu...
And last but not least, we appreciate any feedback to make our UA-cam content better 💡
form.jotform.c... 🙏
I love it. Clear, concise and full of great tips to put into practice!!
Thanks so much Juanjo 😍
Thank you!