Test fields_get for GIS fields

This commit is contained in:
Cédric Krier
2023-02-19 00:19:50 +01:00
parent 5759f93f01
commit ed10d87b40
@@ -14,6 +14,17 @@ class TestGeographicFields(unittest.TestCase):
def setUpClass(cls): def setUpClass(cls):
activate_module('tests') activate_module('tests')
@with_transaction()
def test_fields_get(self):
"Test fields_get"
pool = Pool()
GISPoint = pool.get('test.gis.point')
self.assertDictContainsSubset(
{'dimension': 2, 'geometry_type': 'POINT'},
GISPoint.fields_get(['point'])['point'])
@with_transaction() @with_transaction()
def test_create_save(self): def test_create_save(self):
"Testing create/write with GIS types" "Testing create/write with GIS types"