tests: replace load config from file with static dict

This commit is contained in:
Joe Schr
2023-05-03 12:23:12 +02:00
parent bdca2ac96f
commit 33af450034

View File

@@ -98,11 +98,8 @@ def test_public_trades_mock_populate_dataframe_with_trades__check_orderflow(
dataframe['date'] = pd.to_datetime(
dataframe['date'], unit='ms').dt.tz_localize('UTC')
dataframe = dataframe.copy().tail().reset_index(drop=True)
config = Configuration.from_files(
["../volumio-strategy/user_data/config.json"])
config['timeframe'] = '5m'
config['orderflow']['scale'] = 0.005
config['orderflow']['imbalance_volume'] = 0
config = {'timeframe': '5m',
'orderflow': {'scale': 0.005, 'imbalance_volume': 0, 'imbalance_ratio': 300, 'stacked_imbalance_range': 3}}
df = populate_dataframe_with_trades(config,
dataframe, trades, pair='unitttest')
results = df.iloc[0]