{% include '_flashes.html' %}
{% block content %}
{% endblock content %}
{% endblock body %}
But even after this change, our forms are still using the browser's default form styling. Once again, the security bundle makes it easy to fix this, by overriding the ``render_form`` macro in the ``security/_macros.html`` template. You'll note we've already written this macro, so all we need to do is the following:
.. code:: html+jinja
{# app/templates/security/_macros.html #}
{% from '_macros.html' import render_form as _render_form %}
{# the above is *only* an import, and Jinja doesn't re-export it, so we #}
{# work around that by proxying to the original macro under the same name #}
{% macro render_form(form) %}
{{ _render_form(form, **kwargs) }}
{% endmacro %}
Testing the Security Views
^^^^^^^^^^^^^^^^^^^^^^^^^^
Unlike all of our earlier tests, testing the security bundle views requires that we have valid users in the database. Perhaps the most powerful way to accomplish this is by using `Factory Boy