Skip to content

Commit 414fb91

Browse files
author
Christopher Doris
committed
basic gui tests
1 parent cd96245 commit 414fb91

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/compat.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,13 @@
1616
@test !isdir(tname)
1717
end
1818
end
19+
20+
@testitem "gui" begin
21+
@test PythonCall.fix_qt_plugin_path() isa Bool
22+
@test PythonCall.fix_qt_plugin_path() === false
23+
for g in [:pyqt4, :pyqt5, :pyside, :pyside2, :gtk, :gtk3, :wx, :tkinter]
24+
# TODO: actually test the various GUIs somehow?
25+
@test_throws PyException PythonCall.event_loop_on(g)
26+
@test PythonCall.event_loop_off(g) === nothing
27+
end
28+
end

0 commit comments

Comments
 (0)