Тесты кабинета: имя клиента в ответе портфеля
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4YVo4UMopqT5DzicqpPjL
This commit is contained in:
@@ -92,7 +92,7 @@ func fakeBJ(t *testing.T) *httptest.Server {
|
||||
if view == "archive" {
|
||||
asOf = "31.12.2025"
|
||||
}
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"contract": "BR-1", "full_name": "Клиент Тестовый", "portfolio": map[string]any{
|
||||
_ = json.NewEncoder(w).Encode(map[string]any{"contract": "BR-1", "full_name": "Мостовиков Тест", "portfolio": map[string]any{
|
||||
"source": map[bool]string{true: "spectre", false: "quik"}[view == "archive"], "as_of": asOf,
|
||||
"total": 110268.0, "securities_value": 92698.28, "cash_rub": 17569.72, "cost": 80000.0, "pnl": 12698.28, "pnl_pct": 15.87, "priced": 1,
|
||||
"cash": []map[string]any{{"currency": "SUR", "amount": 17569.72}},
|
||||
|
||||
Reference in New Issue
Block a user