diff --git a/bookwyrm/templates/settings/users/user.html b/bookwyrm/templates/settings/users/user.html index 50dcbb14..676502e6 100644 --- a/bookwyrm/templates/settings/users/user.html +++ b/bookwyrm/templates/settings/users/user.html @@ -4,10 +4,7 @@ {% block title %}{{ user.username }}{% endblock %} {% block header %} {{ user.username }} -

- {% trans "Back to users" %} -

- +{% trans "Back to users" %} {% endblock %} {% block panel %} diff --git a/bookwyrm/tests/views/admin/test_user_admin.py b/bookwyrm/tests/views/admin/test_user_admin.py index dbda2f5f..3336cf24 100644 --- a/bookwyrm/tests/views/admin/test_user_admin.py +++ b/bookwyrm/tests/views/admin/test_user_admin.py @@ -37,7 +37,7 @@ class UserAdminViews(TestCase): result = view(request) self.assertIsInstance(result, TemplateResponse) html = result.render() - _, errors = tidy_document(html.content) + _, errors = tidy_document(html.content, options={"drop-empty-elements": False}) if errors: raise Exception(errors) self.assertEqual(result.status_code, 200) @@ -53,7 +53,7 @@ class UserAdminViews(TestCase): self.assertIsInstance(result, TemplateResponse) html = result.render() - _, errors = tidy_document(html.content) + _, errors = tidy_document(html.content, options={"drop-empty-elements": False}) if errors: raise Exception(errors) self.assertEqual(result.status_code, 200) @@ -78,7 +78,7 @@ class UserAdminViews(TestCase): self.assertIsInstance(result, TemplateResponse) html = result.render() - _, errors = tidy_document(html.content) + _, errors = tidy_document(html.content, options={"drop-empty-elements": False}) if errors: raise Exception(errors)