Files
notifications-admin/app/templates/views/providers/edit-provider.html
Chris Hill-Scott 07318b2d11 Replace instances of client.login with client_request
We have a `client_request` fixture which does a bunch of useful stuff
like:
- checking the status code of the response
- returning a `BeautifulSoup` object

Lots of our tests still use an older fixture called `client`. This is
not as good because it:
- returns a raw `Response` object
- doesn’t do the additional checks
- means our tests contain a lot of repetetive boilerplate like `page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')`

This commit converts all the tests which had a `client.login(…)`
statement to use `client_request` (which is already logged in by
default).

Subsequent commits will remove uses of `client` in other tests, but
doing it this way means the work can be broken up into more manageable
chunks.
2022-01-10 14:39:45 +00:00

38 lines
945 B
HTML

{% extends "withoutnav_template.html" %}
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/form.html" import form_wrapper %}
{% from "components/back-link/macro.njk" import govukBackLink %}
{% block per_page_title %}
{{provider.display_name}}
{% endblock %}
{% block backLink %}
{{ govukBackLink({ "href": url_for('.view_providers') }) }}
{% endblock %}
{% block maincolumn_content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-three-quarters">
{{ page_header(provider.display_name) }}
<p class="govuk-body">Update provider:</p>
<ul class="list-bullet">
<li>We only send from the highest priority provider</li>
</ul>
{% call form_wrapper() %}
{{ form.priority }}
{{ page_footer('Save') }}
{% endcall %}
</div>
</div>
{% endblock %}