()
| 17 | |
| 18 | |
| 19 | def test_post_headers(): |
| 20 | with requests_mock.mock() as m: |
| 21 | m.post("https://api.binance.com/api/v3/order", json={}, status_code=200) |
| 22 | client.create_order(symbol="LTCUSDT", side="BUY", type="MARKET", quantity=0.1) |
| 23 | headers = m.last_request._request.headers |
| 24 | assert "Content-Type" in headers |
| 25 | assert headers["Content-Type"] == "application/x-www-form-urlencoded" |
| 26 | |
| 27 | |
| 28 | def test_post_headers_overriden(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…