api client: fix casing of labels in detail view (#72562)
This commit is contained in:
parent
3c63dc9a36
commit
9846a2e515
|
@ -21,8 +21,8 @@
|
|||
<div class="bo-block">
|
||||
<h3>{% trans "Parameters" %}</h3>
|
||||
<ul>
|
||||
<li>{% trans "identifier" %} : {{api_client.identifier}}</li>
|
||||
<li>{% trans "password" %} : {{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:" %}
|
||||
|
|
|
@ -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 : foo-identifier' in resp.text
|
||||
assert 'password : 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
|
||||
|
|
Loading…
Reference in New Issue