change format of health fixture and get_market_summaries fixture
This commit is contained in:
parent
22ef860312
commit
82a2144296
@ -128,32 +128,31 @@ 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,
|
'base': 'ETH',
|
||||||
|
'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,
|
'base': 'TRST',
|
||||||
|
'active': True,
|
||||||
'LastChecked': '2017-11-13T20:15:00.00',
|
'LastChecked': '2017-11-13T20:15:00.00',
|
||||||
'Notice': None
|
'Notice': None
|
||||||
}, {
|
},
|
||||||
'Currency': 'TRST',
|
"SWT/BTC": {
|
||||||
'IsActive': True,
|
'base': 'SWT',
|
||||||
|
'active': True,
|
||||||
'LastChecked': '2017-11-13T20:15:00.00',
|
'LastChecked': '2017-11-13T20:15:00.00',
|
||||||
'Notice': None
|
'Notice': None
|
||||||
}, {
|
},
|
||||||
'Currency': 'SWT',
|
"BCC/BTC": {
|
||||||
'IsActive': True,
|
'base': 'BCC',
|
||||||
|
'active': False,
|
||||||
'LastChecked': '2017-11-13T20:15:00.00',
|
'LastChecked': '2017-11-13T20:15:00.00',
|
||||||
'Notice': None
|
'Notice': None
|
||||||
}, {
|
}})
|
||||||
'Currency': 'BCC',
|
|
||||||
'IsActive': False,
|
|
||||||
'LastChecked': '2017-11-13T20:15:00.00',
|
|
||||||
'Notice': None
|
|
||||||
}])
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
@ -307,8 +306,10 @@ def get_market_summaries_data():
|
|||||||
8 entries. 4 BTC, 4 USTD
|
8 entries. 4 BTC, 4 USTD
|
||||||
:return: JSON market summaries
|
:return: JSON market summaries
|
||||||
"""
|
"""
|
||||||
return [
|
return {
|
||||||
{
|
'XWC/BTC': {
|
||||||
|
'symbol': 'XWC/BTC',
|
||||||
|
'info': {
|
||||||
'Ask': 1.316e-05,
|
'Ask': 1.316e-05,
|
||||||
'BaseVolume': 5.72599471,
|
'BaseVolume': 5.72599471,
|
||||||
'Bid': 1.3e-05,
|
'Bid': 1.3e-05,
|
||||||
@ -322,8 +323,11 @@ def get_market_summaries_data():
|
|||||||
'PrevDay': 1.376e-05,
|
'PrevDay': 1.376e-05,
|
||||||
'TimeStamp': '2018-02-05T01:32:40.493',
|
'TimeStamp': '2018-02-05T01:32:40.493',
|
||||||
'Volume': 424041.21418375
|
'Volume': 424041.21418375
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
'XZC/BTC': {
|
||||||
|
'symbol': 'XZC/BTC',
|
||||||
|
'info': {
|
||||||
'Ask': 0.00627051,
|
'Ask': 0.00627051,
|
||||||
'BaseVolume': 93.23302388,
|
'BaseVolume': 93.23302388,
|
||||||
'Bid': 0.00618192,
|
'Bid': 0.00618192,
|
||||||
@ -337,8 +341,11 @@ def get_market_summaries_data():
|
|||||||
'PrevDay': 0.00668229,
|
'PrevDay': 0.00668229,
|
||||||
'TimeStamp': '2018-02-05T01:32:43.383',
|
'TimeStamp': '2018-02-05T01:32:43.383',
|
||||||
'Volume': 14863.60730702
|
'Volume': 14863.60730702
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
'ZCL/BTC': {
|
||||||
|
'symbol': 'ZCL/BTC',
|
||||||
|
'info': {
|
||||||
'Ask': 0.01137247,
|
'Ask': 0.01137247,
|
||||||
'BaseVolume': 383.55922657,
|
'BaseVolume': 383.55922657,
|
||||||
'Bid': 0.01136006,
|
'Bid': 0.01136006,
|
||||||
@ -352,8 +359,11 @@ def get_market_summaries_data():
|
|||||||
'PrevDay': 0.01179603,
|
'PrevDay': 0.01179603,
|
||||||
'TimeStamp': '2018-02-05T01:32:42.773',
|
'TimeStamp': '2018-02-05T01:32:42.773',
|
||||||
'Volume': 33308.07358285
|
'Volume': 33308.07358285
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
'ZEC/BTC': {
|
||||||
|
'symbol': 'ZEC/BTC',
|
||||||
|
'info': {
|
||||||
'Ask': 0.04155821,
|
'Ask': 0.04155821,
|
||||||
'BaseVolume': 274.75369074,
|
'BaseVolume': 274.75369074,
|
||||||
'Bid': 0.04130002,
|
'Bid': 0.04130002,
|
||||||
@ -367,8 +377,11 @@ def get_market_summaries_data():
|
|||||||
'PrevDay': 0.0429,
|
'PrevDay': 0.0429,
|
||||||
'TimeStamp': '2018-02-05T01:32:43.21',
|
'TimeStamp': '2018-02-05T01:32:43.21',
|
||||||
'Volume': 6479.84033259
|
'Volume': 6479.84033259
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
'XMR/USDT': {
|
||||||
|
'symbol': 'XMR/USDT',
|
||||||
|
'info': {
|
||||||
'Ask': 210.99999999,
|
'Ask': 210.99999999,
|
||||||
'BaseVolume': 615132.70989532,
|
'BaseVolume': 615132.70989532,
|
||||||
'Bid': 210.05503736,
|
'Bid': 210.05503736,
|
||||||
@ -382,8 +395,11 @@ def get_market_summaries_data():
|
|||||||
'PrevDay': 247.93528899,
|
'PrevDay': 247.93528899,
|
||||||
'TimeStamp': '2018-02-05T01:32:43.117',
|
'TimeStamp': '2018-02-05T01:32:43.117',
|
||||||
'Volume': 2688.17410793
|
'Volume': 2688.17410793
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
'XRP/USDT': {
|
||||||
|
'symbol': 'XRP/USDT',
|
||||||
|
'info': {
|
||||||
'Ask': 0.79589979,
|
'Ask': 0.79589979,
|
||||||
'BaseVolume': 9349557.01853031,
|
'BaseVolume': 9349557.01853031,
|
||||||
'Bid': 0.789226,
|
'Bid': 0.789226,
|
||||||
@ -397,8 +413,11 @@ def get_market_summaries_data():
|
|||||||
'PrevDay': 0.93300218,
|
'PrevDay': 0.93300218,
|
||||||
'TimeStamp': '2018-02-05T01:32:42.383',
|
'TimeStamp': '2018-02-05T01:32:42.383',
|
||||||
'Volume': 10801663.00788851
|
'Volume': 10801663.00788851
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
'XVG/USDT': {
|
||||||
|
'symbol': 'XVG/USDT',
|
||||||
|
'info': {
|
||||||
'Ask': 0.05154982,
|
'Ask': 0.05154982,
|
||||||
'BaseVolume': 2311087.71232136,
|
'BaseVolume': 2311087.71232136,
|
||||||
'Bid': 0.05040107,
|
'Bid': 0.05040107,
|
||||||
@ -412,8 +431,11 @@ def get_market_summaries_data():
|
|||||||
'PrevDay': 0.0627,
|
'PrevDay': 0.0627,
|
||||||
'TimeStamp': '2018-02-05T01:32:41.507',
|
'TimeStamp': '2018-02-05T01:32:41.507',
|
||||||
'Volume': 40031424.2152716
|
'Volume': 40031424.2152716
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
'ZEC/USDT': {
|
||||||
|
'symbol': 'ZEC/USDT',
|
||||||
|
'info': {
|
||||||
'Ask': 332.65500022,
|
'Ask': 332.65500022,
|
||||||
'BaseVolume': 562911.87455665,
|
'BaseVolume': 562911.87455665,
|
||||||
'Bid': 330.00000001,
|
'Bid': 330.00000001,
|
||||||
@ -428,4 +450,5 @@ def get_market_summaries_data():
|
|||||||
'TimeStamp': '2018-02-05T01:32:42.947',
|
'TimeStamp': '2018-02-05T01:32:42.947',
|
||||||
'Volume': 1571.09647946
|
'Volume': 1571.09647946
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user