tests.gui_tests module#

Tests for the Tk UI.

class tests.gui_tests.TestTkdialog(*args, **kwargs)[source]#

Bases: DisableSiteMixin, TestCase

Test Tkdialog.

abstract_class = False#
net = True#
test_tk_dialog()[source]#

Test Tk dialog.

class tests.gui_tests.TestTkinter(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, DefaultSiteTestCase

Test Tkinter.

abstract_class = False#
code = 'test'#
family = 'wikipedia'#
net = True#
site = True#
sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
test_tkinter()[source]#

Test Tkinter window.

tests.gui_tests.setUpModule()[source]#

Skip tests if tkinter or PIL is not installed.

Also skip test if PYWIKIBOT_TEST_GUI environment variable is not set. Otherwise import modules and run tests.