marche_a_lombre.test package¶
Submodules¶
marche_a_lombre.test.qgis_interface module¶
marche_a_lombre.test.test_init module¶
Tests QGIS plugin init.
- class marche_a_lombre.test.test_init.TestInit(methodName='runTest')[source]¶
Bases:
TestCaseTest that the plugin init is usable for QGIS.
Based heavily on the validator class by Alessandro Passoti available here:
- http://github.com/qgis/qgis-django/blob/master/qgis-app/
plugins/validator.py
marche_a_lombre.test.test_qgis_environment module¶
marche_a_lombre.test.test_translations module¶
marche_a_lombre.test.utilities module¶
Common functionality used by regression tests.
- marche_a_lombre.test.utilities.get_qgis_app()[source]¶
Start one QGIS application to test against.
- Returns:
Handle to QGIS app, canvas, iface and parent. If there are any errors the tuple members will be returned as None.
- Return type:
(QgsApplication, CANVAS, IFACE, PARENT)
If QGIS is already running the handle to that app will be returned.