diff --git a/network-api/networkapi/wagtailpages/tests/test_donation_modal.py b/network-api/networkapi/wagtailpages/tests/test_donation_modal.py index 38ff44e6698..23ef86ea9e0 100644 --- a/network-api/networkapi/wagtailpages/tests/test_donation_modal.py +++ b/network-api/networkapi/wagtailpages/tests/test_donation_modal.py @@ -1,5 +1,6 @@ from django.test import TestCase from wagtail.admin.panels import get_edit_handler +from wagtail import rich_text from networkapi.wagtailpages.donation_modal import DonationModal @@ -39,7 +40,7 @@ def test_link_target_url_valid_formats(self): data = { "name": "Test Name", "header": "Test Header", - "body": "Test Body", + "body": rich_text.RichText("Test Body"), "donate_text": "Test Donate Button Text", "donate_url": url, "dismiss_text": "Test Dismiss Text", @@ -64,7 +65,7 @@ def test_link_target_url_invalid_formats(self): data = { "name": "Test Name", "header": "Test Header", - "body": "Test Body", + "body": rich_text.RichText("Test Body"), "donate_text": "Test Donate Button Text", "donate_url": url, "dismiss_text": "Test Dismiss Text",