feat: 优化导出文件质量
This commit is contained in:
@@ -262,6 +262,8 @@ def test_result_pages_render_seeded_data():
|
||||
assert 'onclick="window.location.reload()"' in task_response.text
|
||||
assert hotspot_response.status_code == 200
|
||||
assert "热点总结" in hotspot_response.text
|
||||
assert "downloadExport('/api/export/hotspots/hot-result.md'" in hotspot_response.text
|
||||
assert "downloadExport('/api/export/hotspots/hot-result/comments.csv'" in hotspot_response.text
|
||||
assert "评论样本" in hotspot_response.text
|
||||
assert "关联内容" in hotspot_response.text
|
||||
assert "正向" in hotspot_response.text
|
||||
@@ -272,6 +274,8 @@ def test_result_pages_render_seeded_data():
|
||||
assert "<pre" not in hotspot_response.text
|
||||
assert item_response.status_code == 200
|
||||
assert "内容总结" in item_response.text
|
||||
assert "downloadExport('/api/export/items/item-result.md'" in item_response.text
|
||||
assert "downloadExport('/api/export/items/item-result/comments.csv'" in item_response.text
|
||||
assert "评论样本" in item_response.text
|
||||
assert "Top 标签" in item_response.text
|
||||
assert "评论内容" in item_response.text
|
||||
@@ -306,8 +310,10 @@ def test_report_pages_render_empty_state_when_report_missing():
|
||||
|
||||
assert hotspot_response.status_code == 200
|
||||
assert "报告生成中,请稍候" in hotspot_response.text
|
||||
assert 'title="报告尚未生成"' in hotspot_response.text
|
||||
assert item_response.status_code == 200
|
||||
assert "报告生成中,请稍候" in item_response.text
|
||||
assert 'title="报告尚未生成"' in item_response.text
|
||||
|
||||
|
||||
def test_report_pages_warn_when_ai_sample_is_insufficient():
|
||||
|
||||
Reference in New Issue
Block a user