day-cohort-70 / Bangazon-API-BandyChamps

0 stars 0 forks source link

TEST: Complete order by adding payment type #27

Closed stevebrownlee closed 1 month ago

stevebrownlee commented 2 months ago

Add an integration test to tests/order.py that tests adding a payment type to an order.

  1. Create a payment type in setup
  2. Perform PUT to an order with the payment type id in the request body
  3. Perform GET to the order to verify the payment type is assigned

Reference: https://github.com/NSS-Day-Cohort-68/server-side-python-curriculum/blob/main/book-3-reflections/chapters/TESTING.md

samsheps commented 1 month ago

@stevebrownlee the reference link gives us a 404