Django Testing Tutorial with Pytest #4 - Fixtures (2018)

preview_player
Показать описание
Welcome everybody to this django testing for beginners series!
In this video you will learn what fixtures are and simple examples of how to use them.

7 Tips For Getting Better At Django:

This series will cover what django testing is, how it works and how to start testing your own applications.

What is automated testing?

Automated testing is the process of writing a little code snippet to test other parts of your production code. This ensures, that your code is working correctly in production and keeps on working correctly if you make changes.

You will learn about concepts such as:

- using the pytest libary
- using mixer
- RequestFactory

and more.

If you enjoyed this video, make sure to hit a like and share it with anyone you think could enjoy it as well.

I hope to see you inside of the next episode,

Cheers.
Рекомендации по теме
Комментарии
Автор

Thank you .. ! This is awesome learning, quick concise and covers most of the scenarios. Great great work!

nishuv
Автор

Had to re-upload the video, but everything should be fine now. Enjoy!

thedumbfounds
Автор

Thank you :) please dont stop with making videos about django! :)

dinodino
Автор

Very good Video. Thank you very much. The only thing that I was struggeling with: Why indirect=True? Would have been nice, if you would have explained. But again thanks a lot for your effort.

SmartC
Автор

Thanks for the great tutorial! I have a doubt, can you explain how we test when we have forms that includes modelChoicefield or choicefields that get its choices from the database table. Thanks in advance!

mirunasuresh
Автор

Really useful playlist. Hope you can add more videos to this series, such as, a complete tests for creating/updating/building models. or testing an api.
In addition, I have a question to this video, In the famous Django book, two scoops of Django, the author has advised of not using fixtures. What are your thoughts about fixtures in general?

OusamaEsbel
Автор

You are doing a great job, thanks a lot. It would be great if you could make one more video about fixtures vs. initial data load.

danielkozhemyako
Автор

I want to check if the record is saved in the db as well
Can you guide me ?

jayaraghavendra
Автор

sir tutorial is great, but i am facing a problem in models linked with Foregien Key can you solve that issue ? it will be really helpful.

saikatmukherjee
Автор

Really want to see any practical application of these tests like, testing a views which are creating or interacting with DB, instantiating some methods etc

letccc