Skip to content
Snippets Groups Projects
Commit 87dcb554 authored by Arnaud MORVAN's avatar Arnaud MORVAN
Browse files

Run tests on QGIS 3.34

parent 7b33e2bc
No related branches found
No related tags found
1 merge request!38Run tests on QGIS 3.34
Pipeline #16835 passed
......@@ -39,3 +39,4 @@ test:
- QGIS_VERSION:
- release-3_22
- release-3_28
- release-3_34
......@@ -69,6 +69,10 @@ class TestInterpolationAreaManager(unittest.TestCase):
assert self.layer.isValid()
QgsProject.instance().addMapLayer(self.layer)
def tearDown(self) -> None:
self.layer.deleteLater()
QgsProject.instance().clear()
def test_givenNoneLayer_whenReadingInterpolationAreasFromLayer_thenReturnEmptyArray(
self,
):
......
......@@ -21,6 +21,7 @@ class TestPointsSelection(unittest.TestCase):
def tearDownClass(cls):
cls.layer.deleteLater()
super(TestPointsSelection, cls).tearDownClass()
QgsProject.instance().clear()
def section(self):
request = QgsFeatureRequest()
......
......@@ -32,8 +32,12 @@ class TestInterpolationAreasWidgetWrapper(TestCase):
# Close the modal dialog in another loop
def on_timeout():
wrapper.interpolation_areas_dialog.accept()
wrapper.interpolation_areas_dialog.accept() # noqa
QtCore.QTimer.singleShot(100, on_timeout)
wrapper.openDialog()
del wrapper
dlg.deleteLater()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment