horizon/openstack_dashboard/dashboards/project/instances
Akihiro Motoki a0dd4d738c Support Django 3.0 and 3.1 support (3)
The result of the encoded (i.e., escaped) text in HTML changed
between Django pre-3.0 and 3.0+. For example, decimal and hex encoding
are semantically same but they are different in literal texts.
While I don't know what triggers this change, I think it makes sense
to compare these texts after decoding as HTML.
Considering this, html=True is passed to self.assertContains().

When passing html=True, a text in an HTML element is not compared
partially and a full text as a value of the HTML element is compared,
so we need to pass the full text of an HTML element value now.

I believe the above change is caused by the change that django.test.html.Parser
is initialized with convert_charrefs=False previously. On the other hand,
it is not specified now in Django 3.0+ [1]. This leads to the situation that
escapes on unicode characters are handled differently.

[1] 48235ba807

Change-Id: I0f26436eb384a95f8446d8fd447c9577d50a5c21
2021-09-14 19:35:05 +00:00
..
templates/instances Show all os-extended-server-attributes 2020-09-24 18:48:15 +09:00
workflows Drop the usage of nova extensions in python code 2020-10-27 20:00:45 +09:00
__init__.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
audit_tables.py Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
console.py Add MKS console support 2017-11-29 21:06:38 -05:00
forms.py Drop the usage of nova extensions in python code 2020-10-27 20:00:45 +09:00
interfaces_tables.py Add instance interfaces tab for easy security group edit 2018-04-22 07:40:52 +09:00
panel.py Revert "Add policy rules to project panels" 2017-01-03 19:35:35 +00:00
tables.py Drop the usage of unicode prefix from unicode strings 2021-02-12 13:05:27 -06:00
tabs.py Handle an attached volume without volume_image_metadata 2021-02-28 07:34:59 +09:00
tests.py Support Django 3.0 and 3.1 support (3) 2021-09-14 19:35:05 +00:00
urls.py Support of rescue instance in Horizon 2018-11-20 10:25:37 +00:00
utils.py Cleanup for Refactor-error-messages 2020-09-04 10:39:11 +00:00
views.py Deprecate Django launch instance form 2021-03-09 15:55:35 +09:00