MCPcopy Create free account
hub / github.com/sammchardy/python-binance / test_post_headers

Function test_post_headers

tests/test_headers.py:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def 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
28def test_post_headers_overriden():

Callers

nothing calls this directly

Calls 1

create_orderMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…