From 946dd5bde2c228d6862d6ea9d0060fc0e72d5ed6 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 3 Jan 2017 09:56:50 -0500 Subject: [PATCH] Refs #25004 -- Fixed test failure introduced by OpenLayers 3 update. --- tests/gis_tests/test_geoforms.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/gis_tests/test_geoforms.py b/tests/gis_tests/test_geoforms.py index 9faf38d915c..27b80ce9b2d 100644 --- a/tests/gis_tests/test_geoforms.py +++ b/tests/gis_tests/test_geoforms.py @@ -1,3 +1,6 @@ +import json +import re + from django.contrib.gis import forms from django.contrib.gis.geos import GEOSGeometry from django.forms import ValidationError @@ -109,11 +112,12 @@ class GeometryFieldTest(SimpleTestCase): with patch_logger('django.contrib.gis', 'error') as logger_calls: output = str(form) - self.assertInHTML( - '', - output - ) + # The first point can't use assertInHTML() due to non-deterministic + # ordering of the rendered dictionary. + pt1_serialized = re.search(r'',