Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Feb 24, 2025
1 parent 6036c7c commit 2125f7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from qgis.PyQt import QtWidgets, QtGui

from ee_plugin.ui.forms import add_feature_collection
from ee_plugin.ui import widgets
from ee_plugin.ui import widgets, widget_parsers


def test_get_values():
Expand All @@ -31,7 +31,7 @@ def test_get_values():
dialog.findChild(QtWidgets.QLineEdit, "line_edit").setText("test")
dialog.findChild(QtWidgets.QCheckBox, "check_box").setChecked(True)

assert widgets.get_dialog_values(dialog) == {
assert widget_parsers.get_dialog_values(dialog) == {
"line_edit": "test",
"check_box": True,
}
Expand Down Expand Up @@ -132,5 +132,5 @@ def test_callback(qgis_iface):
)

assert len(qgis_iface.mapCanvas().layers()) == 1
assert qgis_iface.mapCanvas().layers()[0].name() == "FC: SGS/WBD/2017/HUC06"
assert qgis_iface.mapCanvas().layers()[0].name() == "FC: USGS/WBD/2017/HUC06"
assert qgis_iface.mapCanvas().layers()[0].dataProvider().name() == "EE"

0 comments on commit 2125f7c

Please sign in to comment.