Skip to content

Commit

Permalink
basic gui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Doris committed Nov 4, 2023
1 parent cd96245 commit 414fb91
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,13 @@
@test !isdir(tname)
end
end

@testitem "gui" begin
@test PythonCall.fix_qt_plugin_path() isa Bool
@test PythonCall.fix_qt_plugin_path() === false
for g in [:pyqt4, :pyqt5, :pyside, :pyside2, :gtk, :gtk3, :wx, :tkinter]
# TODO: actually test the various GUIs somehow?
@test_throws PyException PythonCall.event_loop_on(g)
@test PythonCall.event_loop_off(g) === nothing
end
end

0 comments on commit 414fb91

Please sign in to comment.