"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
style(test): apply black-compatible FX formatting
zeus22937bb20439f0c
diff --git a/agent/tests/test_portfolio_fx.py b/agent/tests/test_portfolio_fx.pyindex 93b3ff1c9..c179d13d3 100644--- a/agent/tests/test_portfolio_fx.py+++ b/agent/tests/test_portfolio_fx.py@@ -15,10 +15,17 @@ RATES = build_rates(Decimal("7"), Decimal("8"))def test_build_rates_anchors_on_usd() -> None:- assert RATES == {"USD": Decimal("1"), "CNY": Decimal("7"), "HKD": Decimal("8")}+ assert RATES == {+ "USD": Decimal("1"),+ "CNY": Decimal("7"),+ "HKD": Decimal("8"),+ }[email protected]("bad", [Decimal("0"), Decimal("-1"), Decimal("NaN"), Decimal("Infinity")])+ "bad",+ [Decimal("0"), Decimal("-1"), Decimal("NaN"), Decimal("Infinity")],+)def test_build_rates_rejects_non_positive_or_non_finite_rates(bad: Decimal) -> None:with pytest.raises(PortfolioContractError, match="USD/CNY"):build_rates(bad, Decimal("8"))