MCPcopy Create free account
hub / github.com/ccxt/ccxt / test_implode_params

Function test_implode_params

python/ccxt/test/base/test_implode_params.py:17–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15import ccxt.async_support as ccxt # noqa: F402
16
17def test_implode_params():
18 exchange = ccxt.Exchange({
19 'id': 'sampleexchange',
20 })
21 path = 'v2/watchlists/{timeframe_id}/{symbol_id}'
22 params = {
23 'timeframe_id': '1m',
24 'symbol_id': 'BTC/USDT',
25 'extra_param': 'should_be_ignored',
26 }
27 expected = 'v2/watchlists/1m/BTC/USDT'
28 result = exchange.implode_params(path, params)
29 assert result == expected, 'implodeParams did not produce the expected result: ' + result + ' != ' + expected

Callers 1

base_tests_initFunction · 0.90

Calls 2

implode_paramsMethod · 0.95
ExchangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…