[IMP] docuseal_signing: add unit tests for API payload and server action
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m28s
tests / test (pull_request) Successful in 51s

Cover with a mocked Docuseal API (shared ``DocusealApiMockMixin``
capturing every request):

- field value conversion matrix in ``_create_submissions``: char,
  selection label, many2one/many2many display names, date formatting,
  empty value left editable while set values are locked
- payload structure and one-submission-per-partner behavior
- draft submissions created with ``send_email`` disabled
- API URL trailing slash stripped
- server action creation is idempotent

Assisted-By: GLM-5.3-Flash
This commit is contained in:
2026-11-03 17:25:54 +01:00
parent 5050219d8c
commit f9a8358e95
5 changed files with 199 additions and 35 deletions

View File

@@ -1,2 +1,3 @@
from . import test_fetch_fields
from . import test_server_action
from . import test_submissions