From 79c26c384d85ffd03ba60beb78deeaac8139aa65 Mon Sep 17 00:00:00 2001 From: Alexander Bruy Date: Wed, 27 Sep 2017 11:05:24 +0300 Subject: [PATCH] [processing] fix execute sql test --- .../testdata/expected/gdal/execute_sql.gml | 8 +++--- .../testdata/expected/gdal/execute_sql.xsd | 10 +++---- .../tests/testdata/gdal_algorithm_tests.yaml | 28 +++++++++---------- 3 files changed, 21 insertions(+), 25 deletions(-) diff --git a/python/plugins/processing/tests/testdata/expected/gdal/execute_sql.gml b/python/plugins/processing/tests/testdata/expected/gdal/execute_sql.gml index 2f8d20bac10..c6dd8ef93b5 100644 --- a/python/plugins/processing/tests/testdata/expected/gdal/execute_sql.gml +++ b/python/plugins/processing/tests/testdata/expected/gdal/execute_sql.gml @@ -12,11 +12,11 @@ - - 3,2 6,1 6,-3 2,-1 2,2 3,2 + + 3,2 6,1 6,-3 2,-1 2,2 3,2 elim 2 - 3.330000000000000 - + 3.33 + diff --git a/python/plugins/processing/tests/testdata/expected/gdal/execute_sql.xsd b/python/plugins/processing/tests/testdata/expected/gdal/execute_sql.xsd index de71f1bca30..877e41c9d72 100644 --- a/python/plugins/processing/tests/testdata/expected/gdal/execute_sql.xsd +++ b/python/plugins/processing/tests/testdata/expected/gdal/execute_sql.xsd @@ -10,12 +10,12 @@ - - + + - + @@ -26,15 +26,13 @@ - + - - diff --git a/python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml b/python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml index 1d3c1977c15..a2460d4c189 100644 --- a/python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml +++ b/python/plugins/processing/tests/testdata/gdal_algorithm_tests.yaml @@ -608,21 +608,19 @@ tests: name: expected/gdal/clip_lines_by_multipolygon.gml type: vector - #~ - algorithm: gdal:executesql - #~ name: Execute SQL - #~ params: - #~ DIALECT: 0 - #~ INPUT: - #~ name: polys.gml - #~ type: vector - #~ OPTIONS: '' - #~ SQL: SELECT * FROM polys2 WHERE intval=2 - #~ results: - #~ OUTPUT: - #~ name: expected/gdal/execute_sql.gml - #~ type: vector - #~ compare: - #~ ignore_crs_check: true + - algorithm: gdal:executesql + name: Execute SQL + params: + DIALECT: 0 + INPUT: + name: polys.gml + type: vector + OPTIONS: '' + SQL: SELECT * FROM polys2 WHERE intval=2 + results: + OUTPUT: + name: expected/gdal/execute_sql.gml + type: vector - algorithm: gdal:offsetcurve name: Offset curve (right-sided)