feat: asset catalog API, 태그 DB 기초, 마이그레이션 3건 및 도메인/테스트 갱신 (2026-05-19)

This commit is contained in:
2026-05-19 22:15:55 +00:00
parent e2226e28b6
commit 158929b2d9
33 changed files with 2575 additions and 102 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ from typer.testing import CliRunner
from app.cli.main import create_app
from app.core.config import Settings
from app.domain.models import LedgerEntry, Portfolio, PortfolioComment, PortfolioTag, StrategySet, User
from app.domain.models import Asset, LedgerEntry, Portfolio, PortfolioComment, PortfolioTag, StrategySet, User
class FakeRepo:
@@ -110,10 +110,10 @@ class FakeRepo:
return portfolio
def get_asset_by_id(self, asset_id: str):
return None
return Asset(asset_id=asset_id, symbol="TEST", markets=[], status="active")
def get_asset_by_symbol(self, symbol: str):
return None
return Asset(asset_id=_TEST_ASSET_ID, symbol=symbol, markets=[], status="active")
def list_assets(self):
return []