lingo: callback_url is not displayed as a link (#56646)
This commit is contained in:
parent
2a26f13c94
commit
013248d96e
|
@ -12,7 +12,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
{% if object.id and callback_url %}
|
{% if object.id and callback_url %}
|
||||||
<p><label>{% trans "Callback URL:" %}</label> <a href="{{ callback_url }}">{{ callback_url }}</a></p>
|
<p><label>{% trans "Callback URL:" %}</label> {{ callback_url }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
{% if object.id and callback_url %}
|
{% if object.id and callback_url %}
|
||||||
<p><label>{% trans "Callback URL:" %}</label> <a href="{{ callback_url }}">{{ callback_url }}</a></p>
|
<p><label>{% trans "Callback URL:" %}</label> {{ callback_url }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
|
|
|
@ -69,8 +69,11 @@ def test_edit_regie(app, admin_user, payment_backend):
|
||||||
assert '/manage/lingo/regies/' in resp.text
|
assert '/manage/lingo/regies/' in resp.text
|
||||||
|
|
||||||
# callback URL is shown
|
# callback URL is shown
|
||||||
assert 'Callback URL' in resp
|
assert (
|
||||||
assert 'http://testserver/lingo/callback-payment-backend/%s/' % payment_backend.slug in resp
|
'<p><label>Callback URL:</label> http://testserver/lingo/callback-payment-backend/%s/</p>'
|
||||||
|
% payment_backend.slug
|
||||||
|
in resp
|
||||||
|
)
|
||||||
|
|
||||||
resp.forms[0]['description'] = 'other description'
|
resp.forms[0]['description'] = 'other description'
|
||||||
resp = resp.forms[0].submit()
|
resp = resp.forms[0].submit()
|
||||||
|
@ -636,8 +639,11 @@ def test_edit_payment_backend(app, admin_user):
|
||||||
assert '/manage/lingo/paymentbackends/' in resp.text
|
assert '/manage/lingo/paymentbackends/' in resp.text
|
||||||
|
|
||||||
# callback URL is shown
|
# callback URL is shown
|
||||||
assert 'Callback URL' in resp
|
assert (
|
||||||
assert 'http://testserver/lingo/callback-payment-backend/%s' % payment_backend.slug in resp
|
'<p><label>Callback URL:</label> http://testserver/lingo/callback-payment-backend/%s/</p>'
|
||||||
|
% payment_backend.slug
|
||||||
|
in resp
|
||||||
|
)
|
||||||
|
|
||||||
# service cannot be changed
|
# service cannot be changed
|
||||||
assert 'disabled' in resp.form['service'].attrs
|
assert 'disabled' in resp.form['service'].attrs
|
||||||
|
|
Loading…
Reference in New Issue