using models in tasks.py
This commit is contained in:
@@ -81,10 +81,13 @@ class AsyncTaskTests(TestCase):
|
||||
|
||||
def test_polygons(self):
|
||||
polygons = GeoPolygon.objects.all()
|
||||
|
||||
polygon = polygons[0]
|
||||
obj = (polygon.id,polygon.name)
|
||||
path = tasks.polygon_to_path(obj)
|
||||
self.assertEqual(len(path),4)
|
||||
|
||||
#obj = (polygon.id,polygon.name)
|
||||
path = tasks.polygon_to_path(polygon)
|
||||
|
||||
self.assertEqual(len(path),6)
|
||||
|
||||
def test_summaryfromsplitdata(self):
|
||||
splitdata = [
|
||||
|
||||
Reference in New Issue
Block a user