Fixing bug report #406 + unit test

This commit is contained in:
Jean-Baptiste LE STANG
2018-01-20 14:44:13 +01:00
parent a7e561b55f
commit 081d3932b6
2 changed files with 8 additions and 2 deletions

View File

@@ -232,6 +232,11 @@ def test_exchange_bittrex_get_ticker_bad():
with pytest.raises(btx.OperationalException, match=r'.*gone bad.*'):
wb.get_ticker('BTC_ETH')
fb.result = {'success': True,
'result': {'Bid': 1, 'Ask': 0, 'Last': None}} # incomplete result
with pytest.raises(ContentDecodingError, match=r'.*Got invalid response from bittrex params.*'):
wb.get_ticker('BTC_ETH')
def test_exchange_bittrex_get_ticker_history_one():
wb = make_wrap_bittrex()