Update misspellings that are being detected now

This commit is contained in:
Matthias 2024-05-12 18:18:49 +02:00
parent 18e03f398e
commit 58edb0a54a
7 changed files with 22 additions and 22 deletions

View File

@ -349,7 +349,7 @@ class Configuration:
("hyperopt_list_max_objective", "Parameter --max-objective detected: {}"), ("hyperopt_list_max_objective", "Parameter --max-objective detected: {}"),
("hyperopt_list_no_details", "Parameter --no-details detected: {}"), ("hyperopt_list_no_details", "Parameter --no-details detected: {}"),
("hyperopt_show_no_header", "Parameter --no-header detected: {}"), ("hyperopt_show_no_header", "Parameter --no-header detected: {}"),
("hyperopt_ignore_missing_space", "Paramter --ignore-missing-space detected: {}"), ("hyperopt_ignore_missing_space", "Parameter --ignore-missing-space detected: {}"),
] ]
self._args_to_config_loop(config, configurations) self._args_to_config_loop(config, configurations)

View File

@ -610,7 +610,7 @@ CONF_SCHEMA = {
"message_size_limit": { # In megabytes "message_size_limit": { # In megabytes
"type": "integer", "type": "integer",
"minimum": 1, "minimum": 1,
"maxmium": 20, "maximum": 20,
"default": 8, "default": 8,
}, },
}, },

View File

@ -57,7 +57,7 @@ class VolumePairList(IPairList):
if (self._lookback_days > 0) & (self._lookback_period > 0): if (self._lookback_days > 0) & (self._lookback_period > 0):
raise OperationalException( raise OperationalException(
"Ambigous configuration: lookback_days and lookback_period both set in pairlist " "Ambiguous configuration: lookback_days and lookback_period both set in pairlist "
"config. Please set lookback_days only or lookback_period and lookback_timeframe " "config. Please set lookback_days only or lookback_period and lookback_timeframe "
"and restart the bot." "and restart the bot."
) )

View File

@ -78,7 +78,7 @@ def test_get_latest_hyperopt_file(testdatadir):
def test_load_backtest_metadata(mocker, testdatadir): def test_load_backtest_metadata(mocker, testdatadir):
res = load_backtest_metadata(testdatadir / "nonexistant.file.json") res = load_backtest_metadata(testdatadir / "nonexistent.file.json")
assert res == {} assert res == {}
mocker.patch("freqtrade.data.btanalysis.get_backtest_metadata_filename") mocker.patch("freqtrade.data.btanalysis.get_backtest_metadata_filename")
@ -86,7 +86,7 @@ def test_load_backtest_metadata(mocker, testdatadir):
with pytest.raises( with pytest.raises(
OperationalException, match=r"Unexpected error.*loading backtest metadata\." OperationalException, match=r"Unexpected error.*loading backtest metadata\."
): ):
load_backtest_metadata(testdatadir / "nonexistant.file.json") load_backtest_metadata(testdatadir / "nonexistent.file.json")
def test_load_backtest_data_old_format(testdatadir, mocker): def test_load_backtest_data_old_format(testdatadir, mocker):

View File

@ -1777,7 +1777,7 @@ def test_get_balances_prod(default_conf, mocker, exchange_name):
api_mock = MagicMock() api_mock = MagicMock()
api_mock.fetch_balance = MagicMock( api_mock.fetch_balance = MagicMock(
return_value={"1ST": balance_item, "2ST": balance_item, "3ST": balance_item} return_value={"1ST": balance_item, "2ND": balance_item, "3RD": balance_item}
) )
default_conf["dry_run"] = False default_conf["dry_run"] = False
exchange = get_patched_exchange(mocker, default_conf, api_mock, id=exchange_name) exchange = get_patched_exchange(mocker, default_conf, api_mock, id=exchange_name)

View File

@ -63,9 +63,9 @@ def test_get_balances_prod(default_conf, mocker):
api_mock.fetch_balance = MagicMock( api_mock.fetch_balance = MagicMock(
return_value={ return_value={
"1ST": balance_item.copy(), "1ST": balance_item.copy(),
"2ST": balance_item.copy(), "2ND": balance_item.copy(),
"3ST": balance_item.copy(), "3RD": balance_item.copy(),
"4ST": balance_item.copy(), "4TH": balance_item.copy(),
"EUR": balance_item.copy(), "EUR": balance_item.copy(),
"timestamp": 123123, "timestamp": 123123,
} }
@ -84,7 +84,7 @@ def test_get_balances_prod(default_conf, mocker):
}, },
{ {
"status": "open", "status": "open",
"symbol": "2ST/EUR", "symbol": "2ND/EUR",
"type": "limit", "type": "limit",
"side": "sell", "side": "sell",
"price": 20.0, "price": 20.0,
@ -96,7 +96,7 @@ def test_get_balances_prod(default_conf, mocker):
}, },
{ {
"status": "open", "status": "open",
"symbol": "2ST/USD", "symbol": "2ND/USD",
"type": "limit", "type": "limit",
"side": "sell", "side": "sell",
"price": 20.0, "price": 20.0,
@ -108,7 +108,7 @@ def test_get_balances_prod(default_conf, mocker):
}, },
{ {
"status": "open", "status": "open",
"symbol": "3ST/EUR", "symbol": "3RD/EUR",
"type": "limit", "type": "limit",
"side": "buy", "side": "buy",
"price": 0.02, "price": 0.02,
@ -129,17 +129,17 @@ def test_get_balances_prod(default_conf, mocker):
assert balances["1ST"]["total"] == 10.0 assert balances["1ST"]["total"] == 10.0
assert balances["1ST"]["used"] == 1.0 assert balances["1ST"]["used"] == 1.0
assert balances["2ST"]["free"] == 6.0 assert balances["2ND"]["free"] == 6.0
assert balances["2ST"]["total"] == 10.0 assert balances["2ND"]["total"] == 10.0
assert balances["2ST"]["used"] == 4.0 assert balances["2ND"]["used"] == 4.0
assert balances["3ST"]["free"] == 10.0 assert balances["3RD"]["free"] == 10.0
assert balances["3ST"]["total"] == 10.0 assert balances["3RD"]["total"] == 10.0
assert balances["3ST"]["used"] == 0.0 assert balances["3RD"]["used"] == 0.0
assert balances["4ST"]["free"] == 10.0 assert balances["4TH"]["free"] == 10.0
assert balances["4ST"]["total"] == 10.0 assert balances["4TH"]["total"] == 10.0
assert balances["4ST"]["used"] == 0.0 assert balances["4TH"]["used"] == 0.0
assert balances["EUR"]["free"] == 8.0 assert balances["EUR"]["free"] == 8.0
assert balances["EUR"]["total"] == 10.0 assert balances["EUR"]["total"] == 10.0

View File

@ -1067,7 +1067,7 @@ def test_VolumePairList_range(
elif volumefilter_result == "lookback_days_and_period": elif volumefilter_result == "lookback_days_and_period":
with pytest.raises( with pytest.raises(
OperationalException, OperationalException,
match=r"Ambigous configuration: lookback_days and lookback_period both " match=r"Ambiguous configuration: lookback_days and lookback_period both "
r"set in pairlist config\..*", r"set in pairlist config\..*",
): ):
freqtrade = get_patched_freqtradebot(mocker, whitelist_conf) freqtrade = get_patched_freqtradebot(mocker, whitelist_conf)