mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
tests: replace load config from file with static dict
This commit is contained in:
@@ -98,11 +98,8 @@ def test_public_trades_mock_populate_dataframe_with_trades__check_orderflow(
|
|||||||
dataframe['date'] = pd.to_datetime(
|
dataframe['date'] = pd.to_datetime(
|
||||||
dataframe['date'], unit='ms').dt.tz_localize('UTC')
|
dataframe['date'], unit='ms').dt.tz_localize('UTC')
|
||||||
dataframe = dataframe.copy().tail().reset_index(drop=True)
|
dataframe = dataframe.copy().tail().reset_index(drop=True)
|
||||||
config = Configuration.from_files(
|
config = {'timeframe': '5m',
|
||||||
["../volumio-strategy/user_data/config.json"])
|
'orderflow': {'scale': 0.005, 'imbalance_volume': 0, 'imbalance_ratio': 300, 'stacked_imbalance_range': 3}}
|
||||||
config['timeframe'] = '5m'
|
|
||||||
config['orderflow']['scale'] = 0.005
|
|
||||||
config['orderflow']['imbalance_volume'] = 0
|
|
||||||
df = populate_dataframe_with_trades(config,
|
df = populate_dataframe_with_trades(config,
|
||||||
dataframe, trades, pair='unitttest')
|
dataframe, trades, pair='unitttest')
|
||||||
results = df.iloc[0]
|
results = df.iloc[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user