Make existing tests use ``client_request fixture

This commit makes the existing tests around user permissions less
verbose by using the new `client_request` fixture.

This fixture takes care of:
- setting up a service
- asserting that the response is `200`

It also tests that the page titles, some of which didn’t match with the
`<h1>`s, so this commit also fixes that mismatch.
This commit is contained in:
Chris Hill-Scott
2017-08-17 10:44:36 +01:00
parent fd5dfdf4ad
commit 726e91bebb
3 changed files with 14 additions and 20 deletions

View File

@@ -3,7 +3,7 @@
{% from "components/page-footer.html" import page_footer %}
{% block service_page_title %}
Manage users
{{ user.name or user.email_localpart }}
{% endblock %}
{% block maincolumn_content %}

View File

@@ -12,7 +12,7 @@
} %}
{% block service_page_title %}
Manage users
Team members
{% endblock %}
{% block maincolumn_content %}