From ff9d035e41eb4dba38b44ae9e724322221926a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Clgen=20Sar=C4=B1kavak?= Date: Sat, 23 Nov 2024 13:48:04 +0300 Subject: [PATCH] [fix] Check html encoded versions of the given values in HTML widget test --- tests/django_restframework_gis_tests/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/django_restframework_gis_tests/tests.py b/tests/django_restframework_gis_tests/tests.py index c515d8bb..4a3a05e9 100644 --- a/tests/django_restframework_gis_tests/tests.py +++ b/tests/django_restframework_gis_tests/tests.py @@ -4,6 +4,7 @@ import json import pickle +from html import escape from django.contrib.gis.geos import GEOSGeometry, Point from django.core.exceptions import ImproperlyConfigured @@ -528,8 +529,8 @@ def test_geojson_HTML_widget_value(self): self.geojson_location_list_url, headers={"accept": 'text/html'} ) self.assertContains(response, '