Fix chart pattern alert Markdown
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user