mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-29 19:08:32 -04:00
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.get(…)` or
`client.post(…)` statement to use their equivalents on `client_request`
instead.
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.
18 lines
657 B
HTML
18 lines
657 B
HTML
{% extends "withoutnav_template.html" %}
|
||
{% block per_page_title %}The invitation you were sent has been cancelled{% endblock %}
|
||
{% block maincolumn_content %}
|
||
<div class="govuk-grid-row">
|
||
<div class="govuk-grid-column-two-thirds">
|
||
<h1 class="heading-large">
|
||
The invitation you were sent has been cancelled
|
||
</h1>
|
||
<p class="govuk-body">
|
||
{{ from_user }} decided to cancel this invitation.
|
||
</p>
|
||
<p class="govuk-body">
|
||
If you need access to {{ service_name or organisation_name }}, you’ll have to ask them to invite you again.
|
||
</p>
|
||
</div>
|
||
</div>
|
||
{% endblock %}
|