fix unittest (mock health according to new type)

This commit is contained in:
Matthias Voppichler 2018-03-04 20:19:00 +01:00
parent fa8b356bbc
commit f446b6b50a

View File

@ -103,32 +103,40 @@ def ticker_sell_down():
@pytest.fixture @pytest.fixture
def health(): def health():
return MagicMock(return_value=[{ return MagicMock(return_value={
'Currency': 'BTC', 'ETH/BTC': {
'IsActive': True, 'Currency': 'BTC',
'LastChecked': '2017-11-13T20:15:00.00', 'base': 'ETH',
'Notice': None 'quote': 'BTC',
}, { 'active': True,
'Currency': 'ETH', 'LastChecked': '2017-11-13T20:15:00.00',
'IsActive': True, 'Notice': None
'LastChecked': '2017-11-13T20:15:00.00', },
'Notice': None 'TRST/BTC': {
}, { 'Currency': 'TRST',
'Currency': 'TRST', 'base': 'TRST',
'IsActive': True, 'quote': 'BTC',
'LastChecked': '2017-11-13T20:15:00.00', 'active': True,
'Notice': None 'LastChecked': '2017-11-13T20:15:00.00',
}, { 'Notice': None
'Currency': 'SWT', },
'IsActive': True, 'SWT/BTC': {
'LastChecked': '2017-11-13T20:15:00.00', 'Currency': 'SWT',
'Notice': None 'base': 'SWT',
}, { 'quote': 'BTC',
'Currency': 'BCC', 'active': True,
'IsActive': False, 'LastChecked': '2017-11-13T20:15:00.00',
'LastChecked': '2017-11-13T20:15:00.00', 'Notice': None
'Notice': None },
}]) 'BCC/BTC': {
'Currency': 'BCC',
'base': 'BCC',
'quote': 'BTC',
'active': False,
'LastChecked': '2017-11-13T20:15:00.00',
'Notice': None
}
})
@pytest.fixture @pytest.fixture