qgis-profile-interpreter

qgis plugin for placing 3D points along elevation profiles
git clone git://src.adamsgaard.dk/qgis-profile-interpreter # fast
git clone https://src.adamsgaard.dk/qgis-profile-interpreter.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 079a20c90c1358ba64e417a6bd12735391abeced
parent 0dc0953e7c569cfe50f4a72750d0c37ed044ba2b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  5 Jun 2026 21:53:24 +0300

fix(test): add qgis.PyQt.QtGui stub to fakeqgis so make verify passes

Diffstat:
Mtest/fakeqgis.py | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/test/fakeqgis.py b/test/fakeqgis.py @@ -28,6 +28,11 @@ class QMetaType: QString = 3 +class QIcon: + def __init__(self, *args, **kwargs): + pass + + class QAction: def __init__(self, *args, **kwargs): self._checkable = False @@ -391,6 +396,7 @@ def install(): qgis_gui = ModuleType('qgis.gui') qgis_pyqt = ModuleType('qgis.PyQt') qgis_pyqt_qtcore = ModuleType('qgis.PyQt.QtCore') + qgis_pyqt_qtgui = ModuleType('qgis.PyQt.QtGui') qgis_pyqt_qtwidgets = ModuleType('qgis.PyQt.QtWidgets') for name in [ @@ -406,6 +412,7 @@ def install(): qgis_pyqt_qtcore.Qt = Qt qgis_pyqt_qtcore.QPointF = QPointF qgis_pyqt_qtcore.QMetaType = QMetaType + qgis_pyqt_qtgui.QIcon = QIcon qgis_pyqt_qtwidgets.QAction = QAction sys.modules['qgis'] = qgis @@ -413,12 +420,14 @@ def install(): sys.modules['qgis.gui'] = qgis_gui sys.modules['qgis.PyQt'] = qgis_pyqt sys.modules['qgis.PyQt.QtCore'] = qgis_pyqt_qtcore + sys.modules['qgis.PyQt.QtGui'] = qgis_pyqt_qtgui sys.modules['qgis.PyQt.QtWidgets'] = qgis_pyqt_qtwidgets qgis.core = qgis_core qgis.gui = qgis_gui qgis.PyQt = qgis_pyqt qgis_pyqt.QtCore = qgis_pyqt_qtcore + qgis_pyqt.QtGui = qgis_pyqt_qtgui qgis_pyqt.QtWidgets = qgis_pyqt_qtwidgets # Reset project singleton for each test run.