(response, status_code=HTTPStatus.OK)
| 41 | |
| 42 | |
| 43 | def assert_proper_response(response, status_code=HTTPStatus.OK): |
| 44 | assert ( |
| 45 | response is not None |
| 46 | and response.status_code == status_code |
| 47 | and response.headers["Content-Type"] == "application/json" |
| 48 | ), response.text |
| 49 | |
| 50 | |
| 51 | def assert_payment_secret_and_hash(response, payment): |
no outgoing calls