Private
Public Access
1
0

using models in tasks.py

This commit is contained in:
Sander Roosendaal
2022-07-11 20:30:05 +02:00
parent 7f3d80dc4e
commit 3d62772ed2
4 changed files with 81 additions and 191 deletions

View File

@@ -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 = [