Skip to content

Commit 903f2b5

Browse files
committed
Update tests
1 parent 9a60730 commit 903f2b5

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

test/test_ui.py

+15-17
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,18 @@ def test_add_feature_collection_form(qgis_iface):
3737
"USGS/WBD/2017/HUC06"
3838
)
3939

40-
assert utils.get_values(dialog) == {
41-
"feature_collection_id": "USGS/WBD/2017/HUC06",
42-
"filter_name": "",
43-
"filter_value": "",
44-
# "start_date": "", # TODO: This is missing
45-
# "end_date": "", # TODO: This is missing
46-
"mYMaxLineEdit": "",
47-
"mYMinLineEdit": "",
48-
"mXMaxLineEdit": "",
49-
"mXMinLineEdit": "",
50-
"viz_color_hex": "#000000",
51-
"use_util": False,
52-
**{ # TODO: this is unexpected
53-
"mCondensedLineEdit": "",
54-
"qt_spinbox_lineedit": "2025-02-12",
55-
},
56-
}
40+
dialog_values = utils.get_values(dialog)
41+
42+
assert (
43+
dialog_values.items()
44+
>= {
45+
"feature_collection_id": "USGS/WBD/2017/HUC06",
46+
"filter_name": "",
47+
"filter_value": "",
48+
"start_date": None,
49+
"end_date": None,
50+
"extent": None,
51+
"viz_color_hex": "#000000",
52+
"use_util": False,
53+
}.items()
54+
)

0 commit comments

Comments
 (0)