Skip to content

Commit

Permalink
自動テストが回るか試す
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanahiro committed Jun 17, 2024
1 parent 6e4f74c commit fee63a0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Binary file added tests/fixture/12ke35_1mdem.tif
Binary file not shown.
Binary file added tests/fixture/result.tif
Binary file not shown.
9 changes: 9 additions & 0 deletions tests/test_menu.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import unittest

from dem_to_csmap import DemToCsMap
Expand All @@ -17,6 +18,14 @@ def test_menu(self):
menu.hide()
assert menu.isVisible() is False

menu.mQgsFileWidget_input.setFilePath(
os.path.join(os.path.dirname(__file__), "fixture", "12ke35_1mdem.tif")
)
menu.mQgsFileWidget_output.setFilePath(
os.path.join(os.path.dirname(__file__), "_result.tif")
)
menu.pushButton_run.click() # run process


if __name__ == "__main__":
unittest.main()

0 comments on commit fee63a0

Please sign in to comment.