mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-11-22 09:09:55 +02:00
feat(reports): save the report as one HTML page as well (#1419)
- a saved report also includes complete_report.html: the report as one self-contained page with its sections listed beside the text, readable in a browser, on a phone and in print - answering the save question at the prompt also asks about the page and offers to open it in a local browser window; --no-html and save_reports(..., html=False) skip it - the Tauric Research logo leads the header at the top left, and a line at the foot credits TradingAgents and Tauric Research - the page loads nothing and runs nothing (inline styles, a content-security policy); report text is rendered without raw HTML or images - markdown-it-py is declared as a dependency
This commit is contained in:
@@ -25,7 +25,7 @@ calls: list = []
|
||||
@pytest.mark.unit
|
||||
def test_no_arguments_still_runs_an_analysis(runner):
|
||||
assert runner.invoke(m.app, []).exit_code == 0
|
||||
no_flags = {"ticker": None, "date": None, "analysts": None, "save": None, "show": None}
|
||||
no_flags = {"ticker": None, "date": None, "analysts": None, "save": None, "show": None, "html": None}
|
||||
assert calls == [("analysis", {"checkpoint": None, "portfolio": None, "flags": no_flags})]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user