summaryrefslogtreecommitdiff
path: root/shared/tests/test_sa_models.py
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 16:05:19 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 16:05:19 +0900
commit4747400168279c6cfc1196d86ec77b5d7b513c61 (patch)
treeff92fd87e292c39900a6fee187fbd206a22d618a /shared/tests/test_sa_models.py
parentc0496919e91f110aeed7bc47b24ebc3b8348ee81 (diff)
fix: add TradeRow ORM model, SignalRow missing columns, guard Event.from_dict
- Add TradeRow ORM model matching existing trades migration table - Add conviction, stop_loss, take_profit columns to SignalRow + migration 004 - Persist conviction/stop_loss/take_profit in insert_signal() - Guard Event.from_dict against malformed data with ValueError instead of KeyError
Diffstat (limited to 'shared/tests/test_sa_models.py')
-rw-r--r--shared/tests/test_sa_models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared/tests/test_sa_models.py b/shared/tests/test_sa_models.py
index ae73833..c9311dd 100644
--- a/shared/tests/test_sa_models.py
+++ b/shared/tests/test_sa_models.py
@@ -11,6 +11,7 @@ def test_base_metadata_has_all_tables():
"candles",
"signals",
"orders",
+ "trades",
"positions",
"portfolio_snapshots",
"news_items",
@@ -71,6 +72,9 @@ class TestSignalRow:
"price",
"quantity",
"reason",
+ "conviction",
+ "stop_loss",
+ "take_profit",
"created_at",
}
assert expected == cols