Pytest Django and Django Rest Framework: 12 - Testing Token Authentication

preview_player
Показать описание


The Kenyan Engineer Channel is purely dedicated to delivering quality content on programming tutorials that focuses on topics that I find Interesting, under-discussed or often misinterpreted because of lack of tutorials. I love python, Django, React Native & Aircraft Design and most of my work will revolve around this.

I also do this work as part time and I plan on NEVER charging for my work in any form or shape. However, I'd like to continuously improve on the quality of my recordings and I plan on setting up a studio. Consider supporting me in the link above.
Рекомендации по теме
Комментарии
Автор

4:54
The test was failing because it is unable to find the model with the PK that was hardcoded.
A workaround was to use student.pk

solomonaboyeji