mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-18 04:01:11 +00:00
fixup! Use appropriate assertInHTML / assertTagInHTML variants for FieldBlock tests
This commit is contained in:
parent
f6ae4f9dd9
commit
217c839473
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ class ContextCharBlock(blocks.CharBlock):
|
|||
return super(blocks.CharBlock, self).get_context(value, parent_context)
|
||||
|
||||
|
||||
class TestFieldBlock(SimpleTestCase, WagtailTestUtils):
|
||||
class TestFieldBlock(WagtailTestUtils, SimpleTestCase):
|
||||
def test_charfield_render(self):
|
||||
block = blocks.CharBlock()
|
||||
html = block.render("Hello world!")
|
||||
|
|
@ -449,7 +449,7 @@ class TestRichTextBlock(TestCase):
|
|||
self.assertEqual(result.source, '')
|
||||
|
||||
|
||||
class TestChoiceBlock(SimpleTestCase, WagtailTestUtils):
|
||||
class TestChoiceBlock(WagtailTestUtils, SimpleTestCase):
|
||||
def setUp(self):
|
||||
from django.db.models.fields import BLANK_CHOICE_DASH
|
||||
self.blank_choice_dash_label = BLANK_CHOICE_DASH[0][1]
|
||||
|
|
|
|||
Loading…
Reference in a new issue