Improve response models

This commit is contained in:
Matthias
2020-12-27 09:02:35 +01:00
parent 9350f505bc
commit 9f873305eb
4 changed files with 36 additions and 12 deletions

View File

@@ -933,8 +933,8 @@ def test_api_pair_candles(botclient, ohlcv_history):
assert rc.json()['data_stop_ts'] == 1511686800000
assert isinstance(rc.json()['columns'], list)
assert rc.json()['columns'] == ['date', 'open', 'high',
'low', 'close', 'volume', 'sma', 'buy', 'sell',
'__date_ts', '_buy_signal_open', '_sell_signal_open']
'low', 'close', 'volume', 'sma', 'buy', 'sell',
'__date_ts', '_buy_signal_open', '_sell_signal_open']
assert 'pair' in rc.json()
assert rc.json()['pair'] == 'XRP/BTC'