Skip to content

Commit 535cbfd

Browse files
authored
Merge pull request #89 from MIERUNE/testing
add tests for dialog
2 parents 56dd749 + 5e14faa commit 535cbfd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Diff for: tests/test_gtfs_go_dialog.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from qgis.gui import QgisInterface
2+
3+
from gtfs_go_dialog import GTFSGoDialog
4+
5+
6+
def test_init(qgis_iface: QgisInterface):
7+
dialog = GTFSGoDialog(qgis_iface)
8+
assert not dialog.isVisible()
9+
dialog.show()
10+
assert dialog.isVisible()
11+
dialog.close()
12+
assert not dialog.isVisible()
13+
14+
# init_gui() runs during init
15+
assert dialog.repositoryCombobox.currentText() == "Preset"
16+
assert dialog.comboBox.currentText() == "---Load local ZipFile---"

0 commit comments

Comments
 (0)