diff --git a/wagtail/contrib/table_block/tests.py b/wagtail/contrib/table_block/tests.py index 32412506d4..9f70b13a5e 100644 --- a/wagtail/contrib/table_block/tests.py +++ b/wagtail/contrib/table_block/tests.py @@ -6,10 +6,13 @@ from django.urls import reverse from django.utils import translation from wagtail.contrib.table_block.blocks import DEFAULT_TABLE_OPTIONS, TableBlock +from wagtail.core.blocks.field_block import FieldBlockAdapter from wagtail.core.models import Page from wagtail.tests.testapp.models import TableBlockStreamPage from wagtail.tests.utils import WagtailTestUtils +from .blocks import TableInput + class TestTableBlock(TestCase): def setUp(self): @@ -377,19 +380,20 @@ class TestTableBlockForm(WagtailTestUtils, SimpleTestCase): block_3_opts = TableBlock(table_options={'allowEmpty': False}).table_options self.assertEqual(block_3_opts['allowEmpty'], False) - @unittest.expectedFailure # TODO(telepath) - def test_tableblock_render_form(self): - """ - Test the rendered form field generated by TableBlock. - """ + def test_adapt(self): block = TableBlock() - html = block.render_form(value=self.value) - self.assertIn('