Pytest Django and Django Rest Framework: 10 - Testing Create, Details and DestroyAPIViews

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.
Рекомендации по теме
Комментарии
Автор

Great playlist. Thank you. It's great to see you making mistakes, very few YouTubers show the mistake part but I think it is important that we learn how to debug and what statment may cause the error. Looking forward to upcoming videos.

learnwithwaghu
Автор

It would be better if you use reverse('student-detail', kwargs={'pk': student.pk})

nikhilbhardwaj
Автор

Can we dynamically create that json data in create test

nikhilbhardwaj
Автор

When you delete something from API there is no data to return. Therefore, the status is 204 no content. The status code is correct.

bigbug