"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
test(portfolio): follow current valuation version
zeus22969d5346f3222
diff --git a/agent/tests/test_futu_portfolio_currency.py b/agent/tests/test_futu_portfolio_currency.pyindex bee4ab308..8d0015fa8 100644--- a/agent/tests/test_futu_portfolio_currency.py+++ b/agent/tests/test_futu_portfolio_currency.py@@ -6,7 +6,7 @@ import pytestfrom src.portfolio.config import PortfolioSettingsStorefrom src.portfolio.normalization import normalize_position-from src.portfolio.service import PortfolioService+from src.portfolio.service import PORTFOLIO_VALUATION_VERSION, PortfolioServicefrom src.portfolio.store import PortfolioStorefrom src.trading.connectors.futu import sdk as futu_sdk@@ -150,7 +150,7 @@ def test_legacy_valuation_snapshots_do_not_mix_with_current_history(tmp_path) ->current = service.refresh()- assert current["valuation_version"] == 2+ assert current["valuation_version"] == PORTFOLIO_VALUATION_VERSIONassert [row["id"] for row in service.history()] == [current["snapshot_id"]]assert [row["id"] for row in store.history()] == ["legacy-v1",