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

Function test_initialization

tests/test_threaded_stream.py:31–53  ·  view source on GitHub ↗

Test that manager initializes with correct parameters

()

Source from the content-addressed store, hash-verified

29
30@pytest.mark.asyncio
31async def test_initialization():
32 """Test that manager initializes with correct parameters"""
33 manager = ThreadedApiManager(
34 api_key="test_key",
35 api_secret="test_secret",
36 tld="com",
37 testnet=True,
38 requests_params={"timeout": 10},
39 session_params={"trust_env": True},
40 )
41
42 assert manager._running is True
43 assert manager._socket_running == {}
44 assert manager._client_params == {
45 "api_key": "test_key",
46 "api_secret": "test_secret",
47 "requests_params": {"timeout": 10},
48 "tld": "com",
49 "testnet": True,
50 "session_params": {"trust_env": True},
51 "https_proxy": None,
52 "verbose": False,
53 }
54
55
56@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

ThreadedApiManagerClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…