Python | Django | Ecommerce | Pytest Testing including Factory Boy

preview_player
Показать описание
In this Django tutorial we look at starting to test the app we have been building over the last few tutorials. Having already setup Pytest in the previous tutorial we take that lead and get started organising our folder structure for testing. We build factories using Pytest Factory Boy, create fixtures and use features of Pytest such as parametrizing. We predominately use coverage to help us identify testing that is needed within our apps and, although we don't test the whole project here we make a good start testing forms, models and views of selected apps.

Starting Code: Part 9
Final Code: Part 10

🐱‍🏍Would you like to SUPPORT US FURTHER so that we can make even more great content - Please consider joining our members community.

👍SUBSCRIBE to get more free tutorials, courses and code snippets!
Рекомендации по теме
Комментарии
Автор

This is very beautiful. What part covers receiving and processing orders?

ogcombatacademy
Автор

such an amazing project that incorporates so much much appreciated

chetty
Автор

Great series. I am going to watch version 2. I do not know how to thank you enough.

maxrichard
Автор

pls do it for DRF, because pure django templates does not use

tynnikov
Автор

Can you do please tutorial on deployment to aws ? Thanks for this amazing contents.

malekbaba
Автор

Awesome!
I was wondering if you would consider making a tutorial on how to make async API-requests from a django rest framework view?
My use case is that I need to make 10-15 individual requests to one of googles API, unfortunately they don't accept bulk so I'm left with the need to make individual ones.
Of course, I could make a loop and create 10-15 celery tasks that simply make a request, but is there really no way to add async functionality to DRF in e.g an APIView?
If this isn't possible yet, perhaps you could make a tutorial on task grouping with celery?

IMADETHISACCFORRAY
Автор

Hello sir,
Kindly continue this series..

MrRahul
Автор

Amazing tutorial.Looking forward to the next part of the series.
Currently, if we have multiple product types and different specifications for each product type then the Django-admin module for add products still displays all the specification types irrespective of chosen product type. Can we add ajax for this similar to the Country State City example such that the specification select boxes options in the inline form are updated/filtered if the product type is changed? Can you provide resources that can help in implementing this?

avdhootmukhedkar
Автор

Hi Zander! As a suggestion, could you add a stock management and also clients (customers) managemment system? Thanks for job you are doing.
PS: I check my youtube everyday looking for your latest

fernandtape
Автор

Thank you for this amazing tutorial series! I've been following it very closely, and discovered that the code in the repository for this part (and part 9) has a problem that I cannot for the life of me find a solution for:
The basket functions are working well and session data is recorded, but only the basket summary page is displaying the qty, total and subtotal. Those data are not displaying in the checkout html pages unless triggered by ajax. After adding a product into the basket, the correct basket qty is displayed, but once clicked back to index, the basket qty is displayed as 0 again.

I have a feeling it might be a problem caused by refactoring, hopefully you can help solve? Thank you so much!!

moonriver
Автор

I want to put this on heroku or pythonanywhere. Is there a tutorial you recommend how to do this?

webdevelopment
Автор

Hi Thank you for this in depth video tutorials, Can you do a part on where clients (registered and not registered) request quotations for bulk orders. When the request is made an email goes to the site owner with the product list and the contact information of the new client. No payments are made until the client and owner agrees on prices (this could be a manual process) thanks in advance.

ErangadeSaramEra
Автор

This last video is also 6 months old, please add more.

unseentube
Автор

Does it have an sales income for daily, weekly, monthly and all year?

jaysoncuaresma
Автор

I could not find a part when you are show how to upload multiple images for one Product

bakdauletk
Автор

Hello! Is this the last part of the project?

deobyeol
visit shbcf.ru