pull/1205/head
Piero Toffanin 2022-07-08 15:51:14 -04:00
rodzic e811803271
commit 3fac4d412c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -681,7 +681,7 @@ class TestApiTask(BootTransactionTestCase):
for ext in ["png", "jpg", "webp"]:
res = client.get("/api/projects/{}/tasks/{}/orthophoto/tiles/{}.{}".format(project.id, task.id, tile_path['orthophoto'], ext))
self.assertEqual(res.status_code, status.HTTP_200_OK)
self.assertEqual(res.get('content-type') == 'image/%s' % ext)
self.assertEqual(res.get('content-type'), "image/" + ext)
# Size is 256 by default
res = client.get("/api/projects/{}/tasks/{}/orthophoto/tiles/{}.png".format(project.id, task.id, tile_path['orthophoto']))