From b711bceb7bafb12f50875c2c391e07f38c6456b8 Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 24 Oct 2023 08:01:57 +0200 Subject: [PATCH] Add geojson exporter --- tests/test_exports.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_exports.py b/tests/test_exports.py index 61c69a93..b0ad94ef 100644 --- a/tests/test_exports.py +++ b/tests/test_exports.py @@ -7,6 +7,7 @@ Code contributors: Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concord """ import json import logging.handlers +import os from pathlib import Path from unittest import TestCase from hub.imports.geometry_factory import GeometryFactory @@ -109,6 +110,7 @@ class TestExports(TestCase): self.assertEqual('Polygon', geometry['type'], 'Wrong geometry type') self.assertEqual(1, len(geometry['coordinates']), 'Wrong polygon structure') self.assertEqual(11, len(geometry['coordinates'][0]), 'Wrong number of vertices') + os.unlink(geojson_file) # todo: this test need to cover a multipolygon example too def test_energy_ade_export(self): """