-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use addToolBar with qgis_iface #19
Comments
Hi, |
Thank you for the issue! It seems that the |
As a side note, you don't have to initialize QGIS, since it is done automatically.
|
Hi, I encountered the same problem when I upgraded pytest-qgis to the version 1.3.0. The problem was not present in version 1.2.0. |
Thank you for letting me know, I will fix this ASAP. |
Describe the bug
I'm using qgis_iface fixture to initialize my plugin
But when I add a toolbar with my plugin I get this error
To Reproduce
Steps to reproduce the behavior:
self.iface.addToolBar(self.new_toolbar)
Expected behavior
qgis_iface fixture should allow mocking of toolbar add.
Environment (please complete the following information):
Additional context
I have upgraded my pytest-qgis installation with new version 1.3.0
The text was updated successfully, but these errors were encountered: