Removed unnecessary order_by() from a GIS test that crashed Oracle.
Oracle cannot order_by() a TextField; refs #23504.
This commit is contained in:
parent
ad491ecc6e
commit
7fc13178d6
|
@ -294,7 +294,7 @@ class LayerMapTest(TestCase):
|
||||||
lm = LayerMapping(City, city_shp, mapping)
|
lm = LayerMapping(City, city_shp, mapping)
|
||||||
lm.save(silent=True, strict=True)
|
lm.save(silent=True, strict=True)
|
||||||
self.assertEqual(City.objects.count(), 3)
|
self.assertEqual(City.objects.count(), 3)
|
||||||
self.assertEqual(City.objects.all().order_by('name_txt')[0].name_txt, "Houston")
|
self.assertEqual(City.objects.get(name='Houston').name_txt, "Houston")
|
||||||
|
|
||||||
def test_encoded_name(self):
|
def test_encoded_name(self):
|
||||||
""" Test a layer containing utf-8-encoded name """
|
""" Test a layer containing utf-8-encoded name """
|
||||||
|
|
Loading…
Reference in New Issue