From 58edb0a54a718741574bfcac6896a5524981ea0b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 12 May 2024 18:18:49 +0200 Subject: [PATCH] Update misspellings that are being detected now --- freqtrade/configuration/configuration.py | 2 +- freqtrade/constants.py | 2 +- freqtrade/plugins/pairlist/VolumePairList.py | 2 +- tests/data/test_btanalysis.py | 4 +-- tests/exchange/test_exchange.py | 2 +- tests/exchange/test_kraken.py | 30 ++++++++++---------- tests/plugins/test_pairlist.py | 2 +- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/freqtrade/configuration/configuration.py b/freqtrade/configuration/configuration.py index 9b834fccf..99ec44525 100644 --- a/freqtrade/configuration/configuration.py +++ b/freqtrade/configuration/configuration.py @@ -349,7 +349,7 @@ class Configuration: ("hyperopt_list_max_objective", "Parameter --max-objective detected: {}"), ("hyperopt_list_no_details", "Parameter --no-details 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) diff --git a/freqtrade/constants.py b/freqtrade/constants.py index 7803cdd20..2b8ed7965 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -610,7 +610,7 @@ CONF_SCHEMA = { "message_size_limit": { # In megabytes "type": "integer", "minimum": 1, - "maxmium": 20, + "maximum": 20, "default": 8, }, }, diff --git a/freqtrade/plugins/pairlist/VolumePairList.py b/freqtrade/plugins/pairlist/VolumePairList.py index cab1e7809..f9a0dd6b1 100644 --- a/freqtrade/plugins/pairlist/VolumePairList.py +++ b/freqtrade/plugins/pairlist/VolumePairList.py @@ -57,7 +57,7 @@ class VolumePairList(IPairList): if (self._lookback_days > 0) & (self._lookback_period > 0): 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 " "and restart the bot." ) diff --git a/tests/data/test_btanalysis.py b/tests/data/test_btanalysis.py index 022713e0f..be4c638a7 100644 --- a/tests/data/test_btanalysis.py +++ b/tests/data/test_btanalysis.py @@ -78,7 +78,7 @@ def test_get_latest_hyperopt_file(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 == {} mocker.patch("freqtrade.data.btanalysis.get_backtest_metadata_filename") @@ -86,7 +86,7 @@ def test_load_backtest_metadata(mocker, testdatadir): with pytest.raises( 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): diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index 1d7e6e356..520de1c0f 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -1777,7 +1777,7 @@ def test_get_balances_prod(default_conf, mocker, exchange_name): api_mock = 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 exchange = get_patched_exchange(mocker, default_conf, api_mock, id=exchange_name) diff --git a/tests/exchange/test_kraken.py b/tests/exchange/test_kraken.py index e9130f22d..932677c68 100644 --- a/tests/exchange/test_kraken.py +++ b/tests/exchange/test_kraken.py @@ -63,9 +63,9 @@ def test_get_balances_prod(default_conf, mocker): api_mock.fetch_balance = MagicMock( return_value={ "1ST": balance_item.copy(), - "2ST": balance_item.copy(), - "3ST": balance_item.copy(), - "4ST": balance_item.copy(), + "2ND": balance_item.copy(), + "3RD": balance_item.copy(), + "4TH": balance_item.copy(), "EUR": balance_item.copy(), "timestamp": 123123, } @@ -84,7 +84,7 @@ def test_get_balances_prod(default_conf, mocker): }, { "status": "open", - "symbol": "2ST/EUR", + "symbol": "2ND/EUR", "type": "limit", "side": "sell", "price": 20.0, @@ -96,7 +96,7 @@ def test_get_balances_prod(default_conf, mocker): }, { "status": "open", - "symbol": "2ST/USD", + "symbol": "2ND/USD", "type": "limit", "side": "sell", "price": 20.0, @@ -108,7 +108,7 @@ def test_get_balances_prod(default_conf, mocker): }, { "status": "open", - "symbol": "3ST/EUR", + "symbol": "3RD/EUR", "type": "limit", "side": "buy", "price": 0.02, @@ -129,17 +129,17 @@ def test_get_balances_prod(default_conf, mocker): assert balances["1ST"]["total"] == 10.0 assert balances["1ST"]["used"] == 1.0 - assert balances["2ST"]["free"] == 6.0 - assert balances["2ST"]["total"] == 10.0 - assert balances["2ST"]["used"] == 4.0 + assert balances["2ND"]["free"] == 6.0 + assert balances["2ND"]["total"] == 10.0 + assert balances["2ND"]["used"] == 4.0 - assert balances["3ST"]["free"] == 10.0 - assert balances["3ST"]["total"] == 10.0 - assert balances["3ST"]["used"] == 0.0 + assert balances["3RD"]["free"] == 10.0 + assert balances["3RD"]["total"] == 10.0 + assert balances["3RD"]["used"] == 0.0 - assert balances["4ST"]["free"] == 10.0 - assert balances["4ST"]["total"] == 10.0 - assert balances["4ST"]["used"] == 0.0 + assert balances["4TH"]["free"] == 10.0 + assert balances["4TH"]["total"] == 10.0 + assert balances["4TH"]["used"] == 0.0 assert balances["EUR"]["free"] == 8.0 assert balances["EUR"]["total"] == 10.0 diff --git a/tests/plugins/test_pairlist.py b/tests/plugins/test_pairlist.py index 61bafbf94..df48d4b98 100644 --- a/tests/plugins/test_pairlist.py +++ b/tests/plugins/test_pairlist.py @@ -1067,7 +1067,7 @@ def test_VolumePairList_range( elif volumefilter_result == "lookback_days_and_period": with pytest.raises( 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\..*", ): freqtrade = get_patched_freqtradebot(mocker, whitelist_conf)