Fix chart pattern alert Markdown

This commit is contained in:
root
2026-08-20 21:03:30 -04:00
parent 036ddde06d
commit a87ed7ba63
2 changed files with 13 additions and 1 deletions
+9
View File
@@ -1685,6 +1685,15 @@ def _():
assert "Not financial advice" in msg
@test("format_signal_message makes chart pattern actions Markdown-safe")
def _():
report = SignalReport(symbol="XAU/USD", display_name="XAU/USD", timestamp="now")
report.action_recommendation = "BUY — double_bottom pattern completion"
msg = format_signal_message(report)
assert "_BUY — double bottom pattern completion_" in msg
assert "double_bottom" not in msg
@test("format_signal_message renders stamped per-TF trail plan")
def _():
def _setup(**extra):