Skip to content
Permalink
Browse files

Added test

  • Loading branch information
wonder-sk committed Jan 17, 2018
1 parent 6a4b8b4 commit ccd98f5d6cf9a79515090381c086bd3aebed69ee
Showing with 13 additions and 0 deletions.
  1. +2 −0 tests/src/python/test_provider_postgres.py
  2. +11 −0 tests/testdata/provider/testdata_pg.sql
@@ -193,6 +193,8 @@ def test_table(dbconn, table_name, wkt):
test_table(self.dbconn, 'mls2d', 'MultiLineString ((0 0, 1 1),(2 2, 3 3))')
test_table(self.dbconn, 'mls3d', 'MultiLineStringZ ((0 0 0, 1 1 1),(2 2 2, 3 3 3))')

test_table(self.dbconn, 'pt4d', 'PointZM (1 2 3 4)')

def testGetFeaturesUniqueId(self):
"""
Test tables with inheritance for unique ids
@@ -238,6 +238,17 @@ CREATE TABLE qgis_test.mls3d(
INSERT INTO qgis_test.mls3d values (1, 'srid=4326;MultiLineString((0 0 0, 1 1 1),(2 2 2, 3 3 3))'::geometry);


-- Test of 4D geometries (with Z and M values)

CREATE TABLE qgis_test.pt4d(
id int,
geom Geometry(PointZM,4326)
);

INSERT INTO qgis_test.pt4d values (1, 'srid=4326;PointZM(1 2 3 4)'::geometry);



-----------------------------------------
-- Test tables with INHERITS
--

0 comments on commit ccd98f5

Please sign in to comment.
You can’t perform that action at this time.