mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-05 14:58:43 +00:00
Python formatting
This commit is contained in:
parent
6902ffc4c3
commit
34948d494c
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
""" html validation on rendered templates """
|
""" html validation on rendered templates """
|
||||||
from tidylib import tidy_document
|
from tidylib import tidy_document
|
||||||
|
|
||||||
|
|
||||||
def validate_html(html):
|
def validate_html(html):
|
||||||
"""run tidy on html"""
|
"""run tidy on html"""
|
||||||
_, errors = tidy_document(
|
_, errors = tidy_document(
|
||||||
|
|
|
@ -7,6 +7,7 @@ from django.test.client import RequestFactory
|
||||||
from bookwyrm import models, views
|
from bookwyrm import models, views
|
||||||
from bookwyrm.tests.validate_html import validate_html
|
from bookwyrm.tests.validate_html import validate_html
|
||||||
|
|
||||||
|
|
||||||
class DashboardViews(TestCase):
|
class DashboardViews(TestCase):
|
||||||
"""every response to a get request, html or json"""
|
"""every response to a get request, html or json"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue