[Qgis-developer] Using TravisCI integration in Github for QGIS Python plugin

Tom Chadwin tom.chadwin at nnpa.org.uk
Fri Jun 26 14:44:20 PDT 2015


I suspect I'm not going to get this to work. I hit the problem that my plugin
's code used iface, which was not recognised. I managed to inject the dummy
iface replacement created in the qgis_get_app () function mentioned above.
However, next the code calls:

```python
IFACE.legendInterface().groupLayerRelationship()

```

While the dummy iface implements a method legendInterface(), it's just a
stub. It doesn't even return the right object type, but returns a canvas
object instead. 

I might be able to expand the dummy iface to add in the extra features
required to get the right object type returned by that method, but isn't
this all pointless? 

- the more dummy object I have to build, the less real object I am testing

- the dummy won't have the session data associated with it, such as the
project's layers

An I misunderstanding something, or is my attempt to set up testing for
qgis2web doomed? 



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Using-TravisCI-integration-in-Github-for-QGIS-Python-plugin-tp5207646p5213199.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.


More information about the Qgis-developer mailing list