fix: 修正清单进度文字折行,默认最多翻 99 页
进度数字固定在进度条左侧,不再被挤出窗口。
This commit is contained in:
@@ -422,9 +422,9 @@ def test_catalog_page_limit_defaults_and_clamps() -> None:
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
path = Path(tmp) / "catalog-settings.json"
|
||||
with patch.object(cat, "settings_path", lambda: path), patch.object(cat, "_drop_catalog_cache"):
|
||||
assert cat.page_limit() == 300
|
||||
assert cat.set_page_limit(0) == 300
|
||||
assert cat.set_page_limit(-8) == 300
|
||||
assert cat.page_limit() == 99
|
||||
assert cat.set_page_limit(0) == 99
|
||||
assert cat.set_page_limit(-8) == 99
|
||||
assert cat.set_page_limit(12) == 12
|
||||
assert cat.page_limit() == 12
|
||||
assert cat.set_page_limit(5000) == 999
|
||||
|
||||
Reference in New Issue
Block a user