Skip to content

Commit 3bdd2f7

Browse files
committed
style(dro-ara): black-format 2 test files (CI python-quality)
1 parent d38ded6 commit 3bdd2f7

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/research/dro_ara/test_backtest_smoke.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def test_backtest_on_gbm_has_flat_and_active_bars_mix() -> None:
8585
active_timeline = positions[512 + 64 :]
8686
flat_bars = int(np.sum(active_timeline == 0))
8787
flat_frac = flat_bars / max(len(active_timeline), 1)
88-
assert flat_frac >= 0.10, (
89-
f"Filter must zero some GBM bars (DRIFT path), got flat_frac={flat_frac:.3f}"
90-
)
88+
assert (
89+
flat_frac >= 0.10
90+
), f"Filter must zero some GBM bars (DRIFT path), got flat_frac={flat_frac:.3f}"
9191
assert set(np.unique(positions).tolist()) <= {-1, 0, 1}
9292

9393

tests/research/dro_ara/test_power_mc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ def test_gbm_drift_not_classified_as_critical_majority() -> None:
7676
total = sum(gbm.values())
7777
assert total > 0
7878
non_critical_rate = (total - gbm["CRITICAL"]) / total
79-
assert non_critical_rate >= 0.60, (
80-
f"GBM should land in non-CRITICAL regimes majority: {non_critical_rate:.3f}"
81-
)
79+
assert (
80+
non_critical_rate >= 0.60
81+
), f"GBM should land in non-CRITICAL regimes majority: {non_critical_rate:.3f}"
8282

8383

8484
def test_bootstrap_rate_valid_range() -> None:

0 commit comments

Comments
 (0)