Skip to content

Commit

Permalink
flake8/isort fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chosak committed Mar 27, 2019
1 parent 618958f commit 1123620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions wagtail/documents/tests/test_rich_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
from django.test import TestCase

from wagtail.documents.rich_text import DocumentLinkHandler as FrontendDocumentLinkHandler
from wagtail.documents.rich_text.editor_html import DocumentLinkHandler as EditorHtmlDocumentLinkHandler
from wagtail.documents.rich_text.editor_html import \
DocumentLinkHandler as EditorHtmlDocumentLinkHandler


class TestEditorHtmlDocumentLinkHandler(TestCase):
Expand Down Expand Up @@ -38,7 +39,7 @@ class TestFrontendDocumentLinkHandler(TestCase):
fixtures = ['test.json']

def test_expand_db_attributes_for_frontend(self):
self.assertEqual(
self.assertEqual(
FrontendDocumentLinkHandler.expand_db_attributes({'id': 1}),
'<a href="/documents/1/test.pdf">'
)
Expand Down
2 changes: 1 addition & 1 deletion wagtail/images/tests/test_rich_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_expand_db_attributes_for_editor_with_missing_alt(self):
'format': 'left',
})
self.assertIn('data-alt=""', result)


class TestFrontendImageEmbedHandler(TestCase, WagtailTestUtils):
def test_expand_db_attributes_for_frontend(self):
Expand Down

0 comments on commit 1123620

Please sign in to comment.