style: ruff format 调整新增测试换行

This commit is contained in:
GitHub
2026-08-19 19:00:42 +08:00
parent 3180ab3002
commit 1d3d45828d
+1 -3
View File
@@ -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