新增PDF生成并发设置
This commit is contained in:
8
backend/tests/test_system_settings.py
Normal file
8
backend/tests/test_system_settings.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from app.services.system_settings import _coerce_limit
|
||||
|
||||
|
||||
def test_pdf_concurrency_limit_is_clamped():
|
||||
assert _coerce_limit(None) == 2
|
||||
assert _coerce_limit(0) == 1
|
||||
assert _coerce_limit(6) == 6
|
||||
assert _coerce_limit(99) == 10
|
||||
Reference in New Issue
Block a user