0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Remove broken and unnecessary test

From https://github.com/torchbox/wagtail/pull/1691#issuecomment-141407634
This commit is contained in:
Tim Heap 2015-09-22 09:02:06 +10:00
parent 98f37bb6ff
commit 9001abce71

View File

@ -47,13 +47,3 @@ class TestImageEmbedHandler(TestCase):
True
)
self.assertIn('<img data-embedtype="image" data-id="1" data-format="left" data-alt="test-alt" class="richtext-image left"', result)
@patch('wagtail.wagtailimages.models.Image')
@patch('django.core.files.File')
def test_expand_db_attributes_for_editor_throws_exception(self, mock_file, mock_image):
result = ImageEmbedHandler.expand_db_attributes(
{'id': 1,
'format': 'left'},
True
)
self.assertEqual(result, '')