Relaxed MemSize test for CockroachDB.
This commit is contained in:
parent
187e088b48
commit
5a434677a7
|
@ -386,7 +386,8 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
|
||||||
@skipUnlessDBFeature("has_MemSize_function")
|
@skipUnlessDBFeature("has_MemSize_function")
|
||||||
def test_memsize(self):
|
def test_memsize(self):
|
||||||
ptown = City.objects.annotate(size=functions.MemSize('point')).get(name='Pueblo')
|
ptown = City.objects.annotate(size=functions.MemSize('point')).get(name='Pueblo')
|
||||||
self.assertTrue(20 <= ptown.size <= 40) # Exact value may depend on PostGIS version
|
# Exact value depends on database and version.
|
||||||
|
self.assertTrue(20 <= ptown.size <= 105)
|
||||||
|
|
||||||
@skipUnlessDBFeature("has_NumGeom_function")
|
@skipUnlessDBFeature("has_NumGeom_function")
|
||||||
def test_num_geom(self):
|
def test_num_geom(self):
|
||||||
|
|
Loading…
Reference in New Issue