Small updates to prevent random test failures

This commit is contained in:
Matthias 2021-10-13 07:04:21 +02:00
parent 0dbad19b40
commit 2c6290a100
2 changed files with 3 additions and 2 deletions

View File

@ -1606,6 +1606,7 @@ class Exchange:
:param since: The earliest time of consideration for calculating funding fees, :param since: The earliest time of consideration for calculating funding fees,
in unix time or as a datetime in unix time or as a datetime
""" """
# TODO-lev: Add dry-run handling for this.
if not self.exchange_has("fetchFundingHistory"): if not self.exchange_has("fetchFundingHistory"):
raise OperationalException( raise OperationalException(

View File

@ -4284,8 +4284,8 @@ def test_get_valid_price(mocker, default_conf_usdt) -> None:
(TradingMode.SPOT, 0, "2021-09-01 00:00:00", "2021-09-01 08:00:00"), (TradingMode.SPOT, 0, "2021-09-01 00:00:00", "2021-09-01 08:00:00"),
(TradingMode.MARGIN, 0, "2021-09-01 00:00:00", "2021-09-01 08:00:00"), (TradingMode.MARGIN, 0, "2021-09-01 00:00:00", "2021-09-01 08:00:00"),
(TradingMode.FUTURES, 31, "2021-09-01 00:00:02", "2021-09-01 08:00:01"), (TradingMode.FUTURES, 31, "2021-09-01 00:00:02", "2021-09-01 08:00:01"),
(TradingMode.FUTURES, 32, "2021-09-01 00:00:01", "2021-09-01 08:00:01"), (TradingMode.FUTURES, 32, "2021-09-01 00:00:00", "2021-09-01 08:00:01"),
(TradingMode.FUTURES, 33, "2021-09-01 00:00:01", "2021-09-01 08:00:02"), (TradingMode.FUTURES, 32, "2021-09-01 00:00:02", "2021-09-01 08:00:02"),
(TradingMode.FUTURES, 33, "2021-09-01 00:00:00", "2021-09-01 08:00:02"), (TradingMode.FUTURES, 33, "2021-09-01 00:00:00", "2021-09-01 08:00:02"),
(TradingMode.FUTURES, 33, "2021-08-31 23:59:59", "2021-09-01 08:00:02"), (TradingMode.FUTURES, 33, "2021-08-31 23:59:59", "2021-09-01 08:00:02"),
(TradingMode.FUTURES, 33, "2021-08-31 23:59:59", "2021-09-01 08:00:03"), (TradingMode.FUTURES, 33, "2021-08-31 23:59:59", "2021-09-01 08:00:03"),