33 Commits

Author SHA1 Message Date
Alexander Bruy
2c9fdae414 move imports to the top 2016-10-10 15:56:00 +03:00
Alexander Bruy
9b75746003 [processing] remove obsolete import 2016-10-07 16:32:15 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Médéric RIBREUX
8d1bec33a0 Exec things... 2016-05-29 09:00:16 +02:00
Médéric RIBREUX
ec6b29aa8c Remove NaN values from raster before hash calculation 2016-05-29 09:00:16 +02:00
Médéric Ribreux
235f986517 Fix qt5 travis build and update README for Processing tests 2016-05-29 09:00:16 +02:00
Médéric Ribreux
c867123f18 Fix exec statement for AlgorithmsTestBase.py
On travis-ci environment, Python version seems to be affected by [this bug](https://bugs.python.org/issue21591).
One way to fix it is to use the old statement instead of exec() function.
2016-05-29 09:00:16 +02:00
Médéric Ribreux
1945facd1d Temporary make Grass7Utils more verbose for more travis debug 2016-05-29 09:00:16 +02:00
Médéric Ribreux
8884cd715a Add ugly debug prints to try to find what is travis-ci problem... 2016-05-29 09:00:16 +02:00
Médéric Ribreux
03a8a8e507 Try without subfunction 2016-05-29 09:00:16 +02:00
Médéric Ribreux
cd7047cc7c Try this exec modification 2016-05-29 09:00:16 +02:00
Médéric Ribreux
1f21af6672 Improve tests: add external file support into AlgorithmsTest 2016-05-29 09:00:16 +02:00
Médéric Ribreux
e70f9bcf0c Add first set of unit tests 2016-05-29 09:00:16 +02:00
Alexander Bruy
7014c9baa0 [processing] fix tests 2016-05-23 19:34:25 +02:00
Matthias Kuhn
7f3526be71 [processing tests] Cleanup layer registry before every new test 2016-05-22 21:52:55 +02:00
Nyall Dawson
0332157d8a Partial revert 18b69d 2016-05-12 10:22:22 +10:00
Nyall Dawson
18b69d26ef Indentation 2016-05-11 23:02:34 +10:00
Matthias Kuhn
d283223c56 Python 3 update for processing tests 2016-04-14 12:15:12 +02:00
Matthias Kuhn
30df95aba6 Add new target port-plugins to run 2to3 on plugins as build step 2016-04-12 14:48:20 +02:00
Alexander Bruy
9c96be1214 [processing] add function to retrieve Processing version
Initial idea by Etienne Trimaille
2016-04-01 14:09:02 +03:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +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
Matthias Kuhn
e6785ba513 Be more verbose on exceptions in geoalgorithms 2016-03-10 12:14:29 +01:00
Nyall Dawson
8b34437192 Partially revert 3ec161 2016-03-10 12:59:58 +11:00
Nyall Dawson
3ec16131bc Indentation 2016-03-10 10:45:19 +11:00
Matthias Kuhn
61b8896367 Fix expectedFailure in processing tests 2016-03-04 09:43:42 +01:00
Matthias Kuhn
db2ca3aaa2 Allow expectedFailure in processing tests 2016-03-04 08:48:04 +01:00
Nyall Dawson
1b22dcc8a6 Indendation 2016-02-26 14:08:37 +11:00
Matthias Kuhn
3f10553069 Add new test type "regex" to processing tests 2016-02-23 10:24:34 +01:00
Matthias Kuhn
d0d284ad84 Update AlgorithmsTestBase.py 2016-02-23 10:24:34 +01:00
Matthias Kuhn
781c10ba1c [processing] Add gdal test 2016-02-23 09:33:41 +01:00
Matthias Kuhn
450fb13047 [processing] Move AlgorithmTests to QgisAlgorithmTests 2016-02-23 09:33:41 +01:00