mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
test: Improve skdecimal test
This commit is contained in:
@@ -1194,6 +1194,14 @@ def test_SKDecimal():
|
||||
assert not space._contains(1.511)
|
||||
assert not space._contains(1.111222)
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
SKDecimal(1, 2, step=5, decimals=0.2)
|
||||
|
||||
s = SKDecimal(1, 2, step=0.1, decimals=None)
|
||||
assert s.step == 0.1
|
||||
assert s._contains(1.1)
|
||||
assert not s._contains(1.11)
|
||||
|
||||
|
||||
def test_stake_amount_unlimited_max_open_trades(mocker, hyperopt_conf, tmp_path, fee) -> None:
|
||||
# This test is to ensure that unlimited max_open_trades are ignored for the backtesting
|
||||
|
||||
Reference in New Issue
Block a user