feat: 正式成果并入任务清单并限制成果页列表高度
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user