[Tile-serving] [osm2pgsql] Schema tests (#415)
Paul Norman
notifications at github.com
Thu Jul 30 07:56:28 UTC 2015
Rebased, but now getting errors on the python regression tests.
```
======================================================================
FAIL: runTest (__main__.MultipolygonSlimTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/regression-test.py", line 461, in runTest
self.executeStatements(self.postDiffStatements)
File "tests/regression-test.py", line 362, in executeStatements
str(res) + " -- " + sql_test_statements[i][1] + " (" + sql_test_statements[i][2] + ") {" + str(self.parameters) +"}")
AssertionError: 34: Sql statement returned more than one result: [(12893.0,), (12893.0,)] -- Multipolygon non-area inner - outer (Tags from relation) (SELECT round(ST_Area(way)) FROM planet_osm_polygon WHERE osm_id = -14 and landuse = 'residential' and name = 'Name_way5') {[]}
======================================================================
FAIL: runTest (__main__.MultipolygonSlimTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/regression-test.py", line 461, in runTest
self.executeStatements(self.postDiffStatements)
File "tests/regression-test.py", line 362, in executeStatements
str(res) + " -- " + sql_test_statements[i][1] + " (" + sql_test_statements[i][2] + ") {" + str(self.parameters) +"}")
AssertionError: 34: Sql statement returned more than one result: [(12893.0,), (12893.0,)] -- Multipolygon non-area inner - outer (Tags from relation) (SELECT round(ST_Area(way)) FROM planet_osm_polygon WHERE osm_id = -14 and landuse = 'residential' and name = 'Name_way5') {['-G']}
======================================================================
FAIL: runTest (__main__.MultipolygonSlimTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/regression-test.py", line 461, in runTest
self.executeStatements(self.postDiffStatements)
File "tests/regression-test.py", line 362, in executeStatements
str(res) + " -- " + sql_test_statements[i][1] + " (" + sql_test_statements[i][2] + ") {" + str(self.parameters) +"}")
AssertionError: 34: Sql statement returned more than one result: [(12893.0,), (12893.0,)] -- Multipolygon non-area inner - outer (Tags from relation) (SELECT round(ST_Area(way)) FROM planet_osm_polygon WHERE osm_id = -14 and landuse = 'residential' and name = 'Name_way5') {['-k']}
======================================================================
FAIL: runTest (__main__.MultipolygonSlimTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/regression-test.py", line 461, in runTest
self.executeStatements(self.postDiffStatements)
File "tests/regression-test.py", line 362, in executeStatements
str(res) + " -- " + sql_test_statements[i][1] + " (" + sql_test_statements[i][2] + ") {" + str(self.parameters) +"}")
AssertionError: 34: Sql statement returned more than one result: [(12893.0,), (12893.0,)] -- Multipolygon non-area inner - outer (Tags from relation) (SELECT round(ST_Area(way)) FROM planet_osm_polygon WHERE osm_id = -14 and landuse = 'residential' and name = 'Name_way5') {['-x', '-k', '--hstore-match-only']}
======================================================================
FAIL: runTest (__main__.MultipolygonSlimTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/regression-test.py", line 461, in runTest
self.executeStatements(self.postDiffStatements)
File "tests/regression-test.py", line 362, in executeStatements
str(res) + " -- " + sql_test_statements[i][1] + " (" + sql_test_statements[i][2] + ") {" + str(self.parameters) +"}")
AssertionError: 75: Sql statement returned more than one result: [(15246.0,), (15246.0,)] -- Multipolygon tags on both inner and outer diff change outer (presence of relation) (SELECT round(ST_Area(way)) FROM planet_osm_polygon WHERE osm_id = -34 and "landuse" = 'farmland') {['--tag-transform-script', 'style.lua', '-k']}
----------------------------------------------------------------------
```
I'm bisecting, since I really doubt it's caused by this PR, which only touches the C++ tests.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/415#issuecomment-126214911
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150730/fd01039d/attachment.html>
More information about the Tile-serving
mailing list