Open stevebrownlee opened 3 months ago
Write a new test in the tests/product.py module that verifies that a rating can be added to a product. It should also verify that the avg_rating key exists, and is correct, on a product.
tests/product.py
avg_rating
Reference: https://github.com/NSS-Day-Cohort-68/server-side-python-curriculum/blob/main/book-3-reflections/chapters/TESTING.md
Write a new test in the
tests/product.py
module that verifies that a rating can be added to a product. It should also verify that theavg_rating
key exists, and is correct, on a product.Reference: https://github.com/NSS-Day-Cohort-68/server-side-python-curriculum/blob/main/book-3-reflections/chapters/TESTING.md