We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 7b45e9d commit 04101c3Copy full SHA for 04101c3
tests/src/python/test_qgsrelationeditwidget.py
@@ -29,7 +29,8 @@
29
from qgis.gui import (
30
QgsGui,
31
QgsRelationWidgetWrapper,
32
- QgsAttributeEditorContext
+ QgsAttributeEditorContext,
33
+ QgsMapCanvas
34
)
35
36
from qgis.PyQt.QtCore import QTimer
@@ -47,7 +48,8 @@ def setUpClass(cls):
47
48
Setup the involved layers and relations for a n:m relation
49
:return:
50
"""
- QgsGui.editorWidgetRegistry().initEditors()
51
+ cls.mapCanvas = QgsMapCanvas()
52
+ QgsGui.editorWidgetRegistry().initEditors(cls.mapCanvas)
53
cls.dbconn = 'service=\'qgis_test\''
54
if 'QGIS_PGTEST_DB' in os.environ:
55
cls.dbconn = os.environ['QGIS_PGTEST_DB']
0 commit comments