Skip to content

Commit 4de0d6c

Browse files
committed
Tests update
1 parent cce3fa2 commit 4de0d6c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cms/test_utils/project/placeholderapp/templates/detail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% load placeholder_tags %}
33

44
{% block content %}
5-
<h1>{% show_editable_model instance "char_1" "admin:placeholderapp_example1_edit_field" %}</h1>
6-
{% show_editable_model instance "char_2" "admin:placeholderapp_example1_edit_field" "char_1,char_2" %}
5+
<h1>{% show_editable_model instance "char_1" %}</h1>
6+
{% show_editable_model instance "char_2" "char_1,char_2" %}
77
{% render_placeholder instance.placeholder %}
88
{% endblock content %}

cms/test_utils/project/placeholderapp/templates/detail_multi.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% load placeholder_tags %}
33

44
{% block content %}
5-
<h1>{% show_editable_model instance "char_1" "admin:placeholderapp_multilingualexample1_edit_field" %}</h1>
6-
{% show_editable_model instance "char_2" "admin:placeholderapp_multilingualexample1_edit_field" "char_1,char_2" %}
5+
<h1>{% show_editable_model instance "char_1" "char_1" %}</h1>
6+
{% show_editable_model instance "char_2" "char_1,char_2" %}
77
{% render_placeholder instance.placeholder_1 %}
88
{% endblock content %}

cms/tests/toolbar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ def test_admin_url(self):
298298
{% load placeholder_tags %}
299299
300300
{% block content %}
301-
<h1>{% show_editable_model instance "callable_item" "admin:placeholderapp_example1_edit_field" %}</h1>
301+
<h1>{% show_editable_model instance "callable_item" "char_1" %}</h1>
302302
{% endblock content %}
303303
'''
304304
request = self.get_page_request(page, user, edit=True)
@@ -315,7 +315,7 @@ def test_admin_url_extra_field(self):
315315
{% load placeholder_tags %}
316316
317317
{% block content %}
318-
<h1>{% show_editable_model instance "callable_item" "admin:placeholderapp_example1_edit_field" "char_2" %}</h1>
318+
<h1>{% show_editable_model instance "callable_item" "char_2" %}</h1>
319319
{% endblock content %}
320320
'''
321321
request = self.get_page_request(page, user, edit=True)
@@ -334,7 +334,7 @@ def test_admin_url_multiple_fields(self):
334334
{% load placeholder_tags %}
335335
336336
{% block content %}
337-
<h1>{% show_editable_model instance "callable_item" "admin:placeholderapp_example1_edit_field" "char_1,char_2" %}</h1>
337+
<h1>{% show_editable_model instance "callable_item" "char_1,char_2" "en" "admin:placeholderapp_example1_edit_field" %}</h1>
338338
{% endblock content %}
339339
'''
340340
request = self.get_page_request(page, user, edit=True)

0 commit comments

Comments
 (0)