From ce94a883338b83ac960a2f547651a5b7fd9cd263 Mon Sep 17 00:00:00 2001 From: linearcombination <4829djaskdfj@gmail.com> Date: Fri, 7 Jun 2024 13:31:43 -0700 Subject: [PATCH] Fixed wrong endpoint for POST request Also request PDF format result --- tests/e2e/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/test_api.py b/tests/e2e/test_api.py index 4cbf1f4d..841fea58 100644 --- a/tests/e2e/test_api.py +++ b/tests/e2e/test_api.py @@ -1686,14 +1686,14 @@ def test_en_ulb_wa_col_en_tn_condensed_col_language_book_order_with_no_email_1c( """ with TestClient(app=app, base_url=settings.api_test_url()) as client: response = client.post( - "/documents_docx", + "/documents", json={ # "email_address": settings.TO_EMAIL_ADDRESS, "assembly_strategy_kind": model.AssemblyStrategyEnum.LANGUAGE_BOOK_ORDER, "assembly_layout_kind": model.AssemblyLayoutEnum.ONE_COLUMN, "layout_for_print": False, "chunk_size": model.ChunkSizeEnum.CHAPTER, - "generate_pdf": False, + "generate_pdf": True, "generate_epub": False, "generate_docx": False, "resource_requests": [