MCPcopy
hub / github.com/django/django / test_extent_with_limit

Method test_extent_with_limit

tests/gis_tests/geoapp/tests.py:731–737  ·  view source on GitHub ↗

Testing if extent supports limit.

(self)

Source from the content-addressed store, hash-verified

729
730 @skipUnlessDBFeature("supports_extent_aggr")
731 def test_extent_with_limit(self):
732 """
733 Testing if extent supports limit.
734 """
735 extent1 = City.objects.aggregate(Extent("point"))["point__extent"]
736 extent2 = City.objects.all()[:3].aggregate(Extent("point"))["point__extent"]
737 self.assertNotEqual(extent1, extent2)
738
739 def test_make_line(self):
740 """

Callers

nothing calls this directly

Calls 3

ExtentClass · 0.90
aggregateMethod · 0.80
allMethod · 0.45

Tested by

no test coverage detected