From 8e20aa6f2d57bbfa7276a0a3b01fab89268b2dcd Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Thu, 11 Feb 2021 15:35:31 +0100 Subject: [PATCH] Fix pages integration test --- test/integration/test_page_revision_json_encoding.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/test_page_revision_json_encoding.py b/test/integration/test_page_revision_json_encoding.py index b1952ef0a58..6ac0667fb9a 100644 --- a/test/integration/test_page_revision_json_encoding.py +++ b/test/integration/test_page_revision_json_encoding.py @@ -26,7 +26,7 @@ class PageJsonEncodingIntegrationTestCase(integration_util.IntegrationTestCase): title="MY PAGE", content='''

Page!

''' % self.history_id, ) - page_response = self._post("pages", request) + page_response = self._post("pages", request, json=True) api_asserts.assert_status_code_is_ok(page_response) sa_session = self._app.model.context page_revision = sa_session.query(model.PageRevision).filter_by(content_format="html").all()[0] @@ -50,7 +50,7 @@ history_dataset_display(history_dataset_id=%s) ```''' % dataset["id"], content_format="markdown", ) - page_response = self._post("pages", request) + page_response = self._post("pages", request, json=True) api_asserts.assert_status_code_is_ok(page_response) sa_session = self._app.model.context page_revision = sa_session.query(model.PageRevision).filter_by(content_format="markdown").all()[0]