test: remove final edge test occurance
This commit is contained in:
@@ -2584,31 +2584,6 @@ def buy_order_fee():
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="function")
|
|
||||||
def edge_conf(default_conf):
|
|
||||||
conf = deepcopy(default_conf)
|
|
||||||
conf["runmode"] = RunMode.DRY_RUN
|
|
||||||
conf["max_open_trades"] = -1
|
|
||||||
conf["tradable_balance_ratio"] = 0.5
|
|
||||||
conf["stake_amount"] = constants.UNLIMITED_STAKE_AMOUNT
|
|
||||||
conf["edge"] = {
|
|
||||||
"enabled": True,
|
|
||||||
"process_throttle_secs": 1800,
|
|
||||||
"calculate_since_number_of_days": 14,
|
|
||||||
"allowed_risk": 0.01,
|
|
||||||
"stoploss_range_min": -0.01,
|
|
||||||
"stoploss_range_max": -0.1,
|
|
||||||
"stoploss_range_step": -0.01,
|
|
||||||
"maximum_winrate": 0.80,
|
|
||||||
"minimum_expectancy": 0.20,
|
|
||||||
"min_trade_number": 15,
|
|
||||||
"max_trade_duration_minute": 1440,
|
|
||||||
"remove_pumps": False,
|
|
||||||
}
|
|
||||||
|
|
||||||
return conf
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def rpc_balance():
|
def rpc_balance():
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1315,23 +1315,6 @@ def test_process_removed_settings(mocker, default_conf, setting):
|
|||||||
process_temporary_deprecated_settings(default_conf)
|
process_temporary_deprecated_settings(default_conf)
|
||||||
|
|
||||||
|
|
||||||
def test_process_deprecated_setting_edge(mocker, edge_conf):
|
|
||||||
patched_configuration_load_config_file(mocker, edge_conf)
|
|
||||||
edge_conf.update(
|
|
||||||
{
|
|
||||||
"edge": {
|
|
||||||
"enabled": True,
|
|
||||||
"capital_available_percentage": 0.5,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
with pytest.raises(
|
|
||||||
OperationalException, match=r"DEPRECATED.*Using 'edge.capital_available_percentage'*"
|
|
||||||
):
|
|
||||||
process_temporary_deprecated_settings(edge_conf)
|
|
||||||
|
|
||||||
|
|
||||||
def test_check_conflicting_settings(mocker, default_conf, caplog):
|
def test_check_conflicting_settings(mocker, default_conf, caplog):
|
||||||
patched_configuration_load_config_file(mocker, default_conf)
|
patched_configuration_load_config_file(mocker, default_conf)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user