30 Commits

Author SHA1 Message Date
Matthias Kuhn
c268f7e996 Run next_call fixer on tests 2016-04-15 09:20:39 +02:00
Nyall Dawson
92a18087b3 Add safeguard tests to ensure no regressions in expression compilation
(ie check that expressions are successfully compiled where expected)

Add compilation support for "NOT..." type expressions
2016-04-15 07:52:02 +10:00
Matthias Kuhn
07fcf2430b [postgres] Test for deadlocks with transactions 2016-04-14 09:39:51 +02:00
Matthias Kuhn
5cd2319c3f Also retrieve generated values for pktInt 2016-04-07 21:26:43 +02:00
Matthias Kuhn
eecd77a324 Fix postgres unit test 2016-04-07 21:24:01 +02:00
Matthias Kuhn
e98e16f1b2 Unit test for 4ec97c33 2016-04-07 15:59:22 +02:00
Matthias Kuhn
18cdad9956 Convert print function to py3 style in tests 2016-03-31 17:20:53 +02:00
Juergen E. Fischer
f41304637c switch tests to pyqt wrappers 2016-03-21 17:00:26 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
Sandro Santilli
2bd7f446b4 Fix signed 32bit integer overflow in PostgreSQL provider
Fixes #13958
Includes test for signed integer attributes
2016-02-16 17:40:34 +01:00
Juergen E. Fischer
42bc938700 add QgsCredentialsNone to not return any credentials and make it default instead of QgsCredentialsConsole (fixes #14269; reverts f8d2091) 2016-02-16 10:45:58 +01:00
Juergen E. Fischer
f8d2091255 avoid credentials requests in PyQgsPostgresProvider 2016-02-16 00:34:14 +01:00
Sandro Santilli
ab580fbd0e Do not hard-code database connection parameters
Rely on libpq defaults instead (overridable via environment)
2016-02-15 18:17:34 +01:00
Matthias Kuhn
c21889f945 Add qgis.testing module for generic qgis test helpers 2016-02-04 13:36:13 +01:00
Nyall Dawson
96d8986b9f Add polygon layers to provider tests, so we can test ExactIntersect
feature requests
2016-01-31 20:42:11 +11:00
Nyall Dawson
49e45675ee Correct handling of date and time values in mssql provider 2016-01-30 08:33:09 +11:00
Nyall Dawson
7dc5eac8bd Improve handling of time values in attributes
- make QgsVectorFileWriter respect QTime field values and only
convert to string if required by output format
- list time types as native types for memory, postgres and OGR
providers (OGR support depends on file format)
2016-01-28 22:14:25 +11:00
elpaso
94b5e609de Fixed comment base_table_good 2015-12-09 09:41:08 +01:00
elpaso
96789f378e Added tests with use estimated metadata 2015-12-08 11:30:32 +01:00
elpaso
614db66129 Added failing test for tables with INHERITS 2015-12-04 17:54:54 +01:00
Jürgen Fischer
8e5ba3bf92 Merge pull request #2458 from SebDieBln/Postgres_GeomTypeDirect
[postgresprovider] Determine geometry type and srid directly from column type
2015-11-18 22:46:09 +01:00
Nyall Dawson
91571736a8 Make expression compilation optional, but enabled by default
Remove the previous postgres specific option and replace with an
enabled-by-default option which applies to all expression
compilation.
2015-11-18 15:16:38 +11:00
Sebastian Dietrich
cfa308d5ac Added a test for the direct determination of geometry type/srid 2015-11-15 21:31:18 +01:00
Juergen E. Fischer
bf64f8d0a0 spelling fixes and indentation update 2015-10-22 21:56:54 +02:00
Hugo Mercier
c7aeb774ce PostGIS: Allow to load TIN, PS and Triangle layers
The postgres provider is modified so that layers with
TIN, PolyhedralSurface and Triangle geometries can be loaded.
Geometries are converted to MultiPolygons (and Polygons for Triangles).

The postgres test is completed to cover the loading of different types
of layers
2015-10-21 09:41:49 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Matthias Kuhn
32463d0c15 Postgres provider: test default values are correctly returned 2015-05-23 18:28:30 +02:00
Matthias Kuhn
2fe3f55775 Provider testing
* Test more operations
 * Include spatialite tests
2015-05-22 19:39:24 +02:00
Matthias Kuhn
97de55d117 Add new postgres provider test 2015-05-22 11:57:16 +02:00
Matthias Kuhn
ec9e1464c1 Provider test 2015-05-22 11:57:16 +02:00