Test fields_get for GIS fields
This commit is contained in:
@@ -14,6 +14,17 @@ class TestGeographicFields(unittest.TestCase):
|
||||
def setUpClass(cls):
|
||||
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()
|
||||
def test_create_save(self):
|
||||
"Testing create/write with GIS types"
|
||||
|
||||
Reference in New Issue
Block a user