feat: 正式成果并入任务清单并限制成果页列表高度

This commit is contained in:
nixevol
2026-09-16 17:27:33 +08:00
parent 28f3eb877a
commit 6fdc613bac
4 changed files with 60 additions and 43 deletions
+4 -1
View File
@@ -172,9 +172,12 @@ class PageTest(unittest.TestCase):
(root / "b.zip").write_bytes(b"b")
(root / "a.csv").write_text("x\n", encoding="utf-8")
(root / ".hidden").write_text("x", encoding="utf-8")
from ui.results_page import _file_rows
from ui.results_page import _file_rows, _task_label
names = [path.name for path in _file_rows(root)]
self.assertEqual(names, ["a.csv", "b.zip"])
self.assertIn("市场网格出图", _task_label({
"id": "20260815-a0000001", "kind": "market", "status": "success"
}))
def test_uploaded_file_is_stored_once_with_exact_bytes(self):
from streamlit.testing.v1 import AppTest