34 lines
935 B
Python
34 lines
935 B
Python
|
"""
|
||
|
TestImports test and validate the city export formats
|
||
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||
|
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||
|
"""
|
||
|
|
||
|
from pathlib import Path
|
||
|
from unittest import TestCase
|
||
|
from imports.geometry_factory import GeometryFactory
|
||
|
|
||
|
|
||
|
class MyTestCase(TestCase):
|
||
|
def test_something(self):
|
||
|
self.assertEqual(True, False)
|
||
|
"""
|
||
|
TestImports
|
||
|
"""
|
||
|
def setUp(self) -> None:
|
||
|
"""
|
||
|
Test setup
|
||
|
:return: None
|
||
|
"""
|
||
|
self._city_gml = None
|
||
|
self._example_path = (Path(__file__).parent / 'tests_data').resolve()
|
||
|
self._output_path = (Path(__file__).parent / 'tests_outputs').resolve()
|
||
|
|
||
|
def _get_city(self):
|
||
|
if self._city_gml is None:
|
||
|
file_path = (self._example_path / 'kelowna.obj').resolve()
|
||
|
scene = GeometryFactory('obj', file_path)._scene_debug
|
||
|
self._city_gml = scene.city
|
||
|
return self._city_gml
|
||
|
|