(client, payload, content_type="application/json")
| 72 | |
| 73 | |
| 74 | def _post_req(client, payload, content_type="application/json"): |
| 75 | return client.post( |
| 76 | "/api/request", |
| 77 | data=json.dumps(payload) if isinstance(payload, dict) else payload, |
| 78 | content_type=content_type, |
| 79 | ) |
| 80 | |
| 81 | |
| 82 | # --------------------------------------------------------------------------- |
no test coverage detected