You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behaviour
There are few pitfalls when testing QGIS plugins that might cause unexpected behaviours. Some of those are addressed in README but it would be great if there would be a whole section for those.
Be careful not to import modules importing qgis.utils.iface in the root of conftest, because the pytest_configure hook has not yet patched iface in that point. See: qgis.utils iface isn't being replaced #35
Use "layer", "lyr", "raster", "rast", "tif" in layer fixture names in order for those to be cleaned
Expected behaviour
There are few pitfalls when testing QGIS plugins that might cause unexpected behaviours. Some of those are addressed in README but it would be great if there would be a whole section for those.
Some of the pitfalls:
Additional context
Some of the pitfalls could be made as rules into flake8-qgis.
The text was updated successfully, but these errors were encountered: