mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
chore: use nan instead of NaN (numpy 2.x compat)
This commit is contained in:
parent
6d40246764
commit
a5d6417434
|
@ -7,7 +7,7 @@ from unittest.mock import MagicMock, Mock, PropertyMock, patch
|
|||
|
||||
import ccxt
|
||||
import pytest
|
||||
from numpy import NaN
|
||||
from numpy import nan
|
||||
from pandas import DataFrame
|
||||
|
||||
from freqtrade.enums import CandleType, MarginMode, RunMode, TradingMode
|
||||
|
@ -4860,7 +4860,7 @@ def test_get_max_leverage_from_margin(default_conf, mocker, pair, nominal_value,
|
|||
(10, 0.0001, 2.0, 1.0, 0.002, 0.002),
|
||||
(10, 0.0002, 2.0, 0.01, 0.004, 0.00004),
|
||||
(10, 0.0002, 2.5, None, 0.005, None),
|
||||
(10, 0.0002, NaN, None, 0.0, None),
|
||||
(10, 0.0002, nan, None, 0.0, None),
|
||||
],
|
||||
)
|
||||
def test_calculate_funding_fees(
|
||||
|
|
Loading…
Reference in New Issue
Block a user