mirror of
https://ghfast.top/https://github.com/aeroxw/easy-tdx.git
synced 2026-09-12 18:04:16 +08:00
style: ruff format 调整新增测试换行
This commit is contained in:
@@ -147,9 +147,7 @@ def test_skip_bounds_still_allows_out_of_range_values():
|
|||||||
"""skip_bounds 仍应放行超范围取值(只是不放过语义倒挂)。"""
|
"""skip_bounds 仍应放行超范围取值(只是不放过语义倒挂)。"""
|
||||||
from easy_tdx.backtest.strategies import get_registry
|
from easy_tdx.backtest.strategies import get_registry
|
||||||
|
|
||||||
inst = get_registry().get("ma_cross").build(
|
inst = get_registry().get("ma_cross").build({"fast": 100, "slow": 200}, skip_bounds=True)
|
||||||
{"fast": 100, "slow": 200}, skip_bounds=True
|
|
||||||
)
|
|
||||||
assert inst.p["fast"] == 100
|
assert inst.p["fast"] == 100
|
||||||
assert inst.p["slow"] == 200
|
assert inst.p["slow"] == 200
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user