api client: fix casing of labels in detail view (#72562)

This commit is contained in:
Frédéric Péters 2022-12-16 17:43:41 +01:00
parent 3c63dc9a36
commit 9846a2e515
2 changed files with 4 additions and 4 deletions

View File

@ -21,8 +21,8 @@
<div class="bo-block">
<h3>{% trans "Parameters" %}</h3>
<ul>
<li>{% trans "identifier" %}&nbsp;: {{api_client.identifier}}</li>
<li>{% trans "password" %}&nbsp;: {{api_client.password}}</li>
<li>{% trans "Identifier" %}{% trans ":" %} {{api_client.identifier}}</li>
<li>{% trans "Password" %}{% trans ":" %} {{api_client.password}}</li>
{% if api_client.restrict_to_anonymised_data %}<li>{% trans "Restricted to anonymised data" %}</li>{% endif %}
{% if api_client.apiclient_roles.count %}
<li>{% trans "Roles:" %}

View File

@ -147,8 +147,8 @@ def test_detail(superuser, app):
)
api_client.apiclient_roles.add(role_1, role_2)
resp = login(app, superuser, api_client.get_absolute_url())
assert 'identifier&nbsp;: foo-identifier' in resp.text
assert 'password&nbsp;: foo-password' in resp.text
assert 'Identifier: foo-identifier' in resp.text
assert 'Password: foo-password' in resp.text
assert 'foo-description' in resp.text
assert 'Restricted to anonymised data' in resp.text
assert 'role-1' in resp.text