Hmmm weird but for some reason my category attribute refuses to accept 1 as it's value it says: "Cannot assign 1: Product.category must be a Category instance" I know it wants an actual Category object but how do I do create and/or use the Category object inside the parameterize decorator?
Hmmm weird but for some reason my category attribute refuses to accept 1 as it's value it says: "Cannot assign 1: Product.category must be a Category instance" I know it wants an actual Category object but how do I do create and/or use the Category object inside the parameterize decorator?
You must have put 'category=category' in the test = product_factory(...) bit. It needs to be 'category_id=category'
can serializers also be tested in the way you showed how to test forms ?
can we get a link to the e-commerce project example codebase? thank you for your awesomness!
please shear the e-commerce project link.