GispoCoding / pytest-qgis

A pytest plugin for testing QGIS python plugins
GNU General Public License v2.0
29 stars 8 forks source link

Implement more QgisInterface functionality to the stub class #24

Open Joonalai opened 2 years ago

Joonalai commented 2 years ago

Expected behaviour Most of QgisInterface methods should be implemented. Also some signals should be emitted when calling appropriate methods. For example currentLayerChanged should be emitted when calling setActiveLayer.

Current behaviour Only some of the functionality is implemented and calling unimplemented methods raises errors.

Describe alternatives you've considered Wrap the whole class inside MagicMock.