()
| 15 | import ccxt.async_support as ccxt # noqa: F402 |
| 16 | |
| 17 | def 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 |
no test coverage detected
searching dependent graphs…