diff --git a/wagtail/wagtailcore/tests/test_blocks.py b/wagtail/wagtailcore/tests/test_blocks.py index 1fdf1429e5..76f34f6314 100644 --- a/wagtail/wagtailcore/tests/test_blocks.py +++ b/wagtail/wagtailcore/tests/test_blocks.py @@ -901,8 +901,8 @@ class TestStructBlock(SimpleTestCase): def test_render_form(self): class LinkBlock(blocks.StructBlock): - title = blocks.CharBlock() - link = blocks.URLBlock() + title = blocks.CharBlock(required=False) + link = blocks.URLBlock(required=False) block = LinkBlock() html = block.render_form(block.to_python({ @@ -924,6 +924,20 @@ class TestStructBlock(SimpleTestCase): ), html ) + self.assertNotIn('