From 1bdd30606f80f55d80de86bca93834a84363bf54 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Tue, 3 May 2022 19:22:06 -0400 Subject: [PATCH] Improve reliability of test_previewing_page_with_format_works test (#2110) --- tests/admin/test_pages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/admin/test_pages.py b/tests/admin/test_pages.py index 33100b37..9be5290a 100644 --- a/tests/admin/test_pages.py +++ b/tests/admin/test_pages.py @@ -53,7 +53,7 @@ def test_previewing_page_with_format_works(): data = { "title": "title", "route": "route", - "content": "content_testing", + "content": "

content_testing

", "format": "html", "nonce": sess.get("nonce"), "draft": "y", @@ -64,6 +64,6 @@ def test_previewing_page_with_format_works(): r = client.post("/admin/pages/preview", data=data) assert r.status_code == 200 resp = r.get_data(as_text=True) - assert "content_testing" in resp + assert "

content_testing

" in resp destroy_ctfd(app)