forked from s_ranjbar/city_retrofit
Change export method from property to function to improve the semantic
This commit is contained in:
parent
7a77c47d04
commit
634bbc286f
|
@ -58,11 +58,10 @@ class ExportsFactory:
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
@property
|
|
||||||
def export(self):
|
def export(self):
|
||||||
"""
|
"""
|
||||||
Export the city model structure to the given export type
|
Export the city model structure to the given export type
|
||||||
:return: City
|
:return: None
|
||||||
"""
|
"""
|
||||||
return getattr(self, self._export_type, lambda: None)
|
return getattr(self, self._export_type, lambda: None)
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ class TestExports(TestCase):
|
||||||
|
|
||||||
def _export(self, export_type):
|
def _export(self, export_type):
|
||||||
self._city_gml = self._get_city()
|
self._city_gml = self._get_city()
|
||||||
ExportsFactory(export_type, self._city_gml, self._output_path).export
|
ExportsFactory(export_type, self._city_gml, self._output_path).export()
|
||||||
|
|
||||||
def test_obj_export(self):
|
def test_obj_export(self):
|
||||||
self._export('obj')
|
self._export('obj')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user