Commit 27f0a203 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files

fixed tests

parent f30c0245
Pipeline #13835 failed with stage
in 1 minute and 5 seconds
......@@ -76,13 +76,9 @@ class TestMapCanvas(EOTSVTestCase):
canvas.setExtent(lyr1.extent())
pos = QPoint(int(canvas.width() * 0.5), int(canvas.height() * 0.5))
menu = canvas.contextMenu(pos)
menu = QMenu()
canvas.populateContextMenu(menu, pos)
self.assertIsInstance(menu, QMenu)
if not os.environ.get('CI'):
event = QContextMenuEvent(QContextMenuEvent.Mouse, pos)
canvas.contextMenuEvent(event)
self.showGui(menu)
def test_mapcanvasInfoItem(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment