Added test method to OrderTests class for adding payment type to an order, as well as payment type and order in setup.
Changes
Imported User, Order, and Customer models
Created Customer and User instances in test db
Created a payment type
Created an order with ORM
Created a test method to add payment to an order, which checks the status of the order PUT, then gets the order and checks that the status is ok and that the payment type equals the type added at the beginning of the test.
Testing
Description of how to test code...
[ ] In terminal, run: python3 manage.py test tests.OrderTests.test_add_payment_type_to_order
Added test method to OrderTests class for adding payment type to an order, as well as payment type and order in setup.
Changes
Testing
Description of how to test code...
Related Issues