fix unittest (mock health according to new type)
This commit is contained in:
parent
fa8b356bbc
commit
f446b6b50a
@ -103,32 +103,40 @@ def ticker_sell_down():
|
|||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def health():
|
def health():
|
||||||
return MagicMock(return_value=[{
|
return MagicMock(return_value={
|
||||||
|
'ETH/BTC': {
|
||||||
'Currency': 'BTC',
|
'Currency': 'BTC',
|
||||||
'IsActive': True,
|
'base': 'ETH',
|
||||||
|
'quote': 'BTC',
|
||||||
|
'active': True,
|
||||||
'LastChecked': '2017-11-13T20:15:00.00',
|
'LastChecked': '2017-11-13T20:15:00.00',
|
||||||
'Notice': None
|
'Notice': None
|
||||||
}, {
|
},
|
||||||
'Currency': 'ETH',
|
'TRST/BTC': {
|
||||||
'IsActive': True,
|
|
||||||
'LastChecked': '2017-11-13T20:15:00.00',
|
|
||||||
'Notice': None
|
|
||||||
}, {
|
|
||||||
'Currency': 'TRST',
|
'Currency': 'TRST',
|
||||||
'IsActive': True,
|
'base': 'TRST',
|
||||||
|
'quote': 'BTC',
|
||||||
|
'active': True,
|
||||||
'LastChecked': '2017-11-13T20:15:00.00',
|
'LastChecked': '2017-11-13T20:15:00.00',
|
||||||
'Notice': None
|
'Notice': None
|
||||||
}, {
|
},
|
||||||
|
'SWT/BTC': {
|
||||||
'Currency': 'SWT',
|
'Currency': 'SWT',
|
||||||
'IsActive': True,
|
'base': 'SWT',
|
||||||
|
'quote': 'BTC',
|
||||||
|
'active': True,
|
||||||
'LastChecked': '2017-11-13T20:15:00.00',
|
'LastChecked': '2017-11-13T20:15:00.00',
|
||||||
'Notice': None
|
'Notice': None
|
||||||
}, {
|
},
|
||||||
|
'BCC/BTC': {
|
||||||
'Currency': 'BCC',
|
'Currency': 'BCC',
|
||||||
'IsActive': False,
|
'base': 'BCC',
|
||||||
|
'quote': 'BTC',
|
||||||
|
'active': False,
|
||||||
'LastChecked': '2017-11-13T20:15:00.00',
|
'LastChecked': '2017-11-13T20:15:00.00',
|
||||||
'Notice': None
|
'Notice': None
|
||||||
}])
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
Loading…
Reference in New Issue
Block a user