mirror of
https://ghfast.top/https://github.com/aeroxw/easy-tdx.git
synced 2026-09-12 14:34:15 +08:00
style(tests): ruff format 修复尾随空行(CI ruff format --check 失败)
This commit is contained in:
@@ -358,4 +358,3 @@ def test_apply_trades_timestamp_vs_int_df() -> None:
|
|||||||
|
|
||||||
# 修复前交易被丢弃、持仓为 0
|
# 修复前交易被丢弃、持仓为 0
|
||||||
assert tracker.positions["size"].iloc[0] == 100
|
assert tracker.positions["size"].iloc[0] == 100
|
||||||
|
|
||||||
|
|||||||
@@ -129,4 +129,3 @@ class TestRebalanceEngine:
|
|||||||
result = engine.run(_make_market(), start_date=20240101, end_date=20240430)
|
result = engine.run(_make_market(), start_date=20240101, end_date=20240430)
|
||||||
md = result.performance["max_drawdown"]
|
md = result.performance["max_drawdown"]
|
||||||
assert 0.0 <= md <= 1.0, f"max_drawdown={md} 应落在 [0,1]"
|
assert 0.0 <= md <= 1.0, f"max_drawdown={md} 应落在 [0,1]"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user