diff --git a/tests/fixture/12ke35_1mdem.tif b/tests/fixture/12ke35_1mdem.tif new file mode 100644 index 0000000..61337cc Binary files /dev/null and b/tests/fixture/12ke35_1mdem.tif differ diff --git a/tests/fixture/result.tif b/tests/fixture/result.tif new file mode 100644 index 0000000..59216ac Binary files /dev/null and b/tests/fixture/result.tif differ diff --git a/tests/test_menu.py b/tests/test_menu.py index c1bf6e4..0976f0d 100644 --- a/tests/test_menu.py +++ b/tests/test_menu.py @@ -1,3 +1,4 @@ +import os import unittest from dem_to_csmap import DemToCsMap @@ -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()