From 503c542fa341c79a41d8797eb46774eae629ffb3 Mon Sep 17 00:00:00 2001 From: Lukasz Lancucki Date: Fri, 12 Jun 2026 21:26:03 +0100 Subject: [PATCH] test(e2e): use camelCase documentType key in product document fixtures (MPT-22199) The sync and async product-document e2e fixtures set the dictionary key "documenttype" (all lowercase) instead of the camelCase "documentType" expected by the MPT API. With the wrong-cased key the document type was never sent, so the created_document_from_file(_async) fixtures created documents without a type and the product document e2e tests failed. Align both fixtures with the API field name and the rest of the suite, which already uses "documentType". Co-Authored-By: Claude Opus 4.8 --- tests/e2e/catalog/product/documents/test_async_document.py | 2 +- tests/e2e/catalog/product/documents/test_sync_document.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/catalog/product/documents/test_async_document.py b/tests/e2e/catalog/product/documents/test_async_document.py index 7c27da6d..3dfb77c9 100644 --- a/tests/e2e/catalog/product/documents/test_async_document.py +++ b/tests/e2e/catalog/product/documents/test_async_document.py @@ -13,7 +13,7 @@ def async_document_service(async_mpt_vendor, product_id): @pytest.fixture async def created_document_from_file_async(async_document_service, document_data, pdf_fd): - document_data["documenttype"] = "File" + document_data["documentType"] = "File" document = await async_document_service.create(document_data, file=pdf_fd) yield document try: diff --git a/tests/e2e/catalog/product/documents/test_sync_document.py b/tests/e2e/catalog/product/documents/test_sync_document.py index b3285b24..8fbca611 100644 --- a/tests/e2e/catalog/product/documents/test_sync_document.py +++ b/tests/e2e/catalog/product/documents/test_sync_document.py @@ -8,7 +8,7 @@ @pytest.fixture def created_document_from_file(vendor_document_service, document_data, pdf_fd): - document_data["documenttype"] = "File" + document_data["documentType"] = "File" document = vendor_document_service.create(document_data, pdf_fd) yield document try: