From ed10d87b4070e6cea6ff613bbab8799b1d8a79a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 19 Feb 2023 00:19:50 +0100 Subject: [PATCH] Test fields_get for GIS fields --- trytond-gis/trytond_gis/tests/test_fields.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/trytond-gis/trytond_gis/tests/test_fields.py b/trytond-gis/trytond_gis/tests/test_fields.py index c2425878b6..feca21b9c7 100644 --- a/trytond-gis/trytond_gis/tests/test_fields.py +++ b/trytond-gis/trytond_gis/tests/test_fields.py @@ -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"