day-cohort-70 / bangazon-api-i-like-planes-api

bangazon-api-i-like-planes-api created by GitHub Classroom
0 stars 0 forks source link

TEST: Complete order by adding payment type #18

Open stevebrownlee opened 1 week ago

stevebrownlee commented 1 week 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