test Package

test Package

uitestutils Module

class stoqlib.gui.test.uitestutils.GUIDumper[source]

Bases: object

A class used to dump the state of a widget tree and serialize it into a string that can be saved on disk.

dump_widget(widget)[source]
dump_editor(editor)[source]
dump_wizard(wizard)[source]
dump_dialog(dialog)[source]
dump_slave(slave)[source]
dump_app(app)[source]
dump_models(models)[source]
class stoqlib.gui.test.uitestutils.GUITest(test)[source]

Bases: stoqlib.domain.test.domaintest.DomainTest

setUp()[source]
tearDown()[source]
click(button)[source]

Simulates a click on a button. This verifies that the button is clickable (visible and sensitive) and emits the clicked signal

activate(widget)[source]

Simulates activation on a widget This verifies that the button is activatable (visible and sensitive) and emits the activate signal

assertInvalid(dialog, attributes)[source]
assertValid(dialog, attributes)[source]
assertSensitive(dialog, attributes)[source]
assertNotSensitive(dialog, attributes)[source]
assertVisible(dialog, attributes)[source]
assertNotVisible(dialog, attributes)[source]
check_widget(widget, ui_test_name, models=None, ignores=None)[source]
check_wizard(wizard, ui_test_name, models=None, ignores=None)[source]
check_editor(editor, ui_test_name, models=None, ignores=None)[source]
check_dialog(dialog, ui_test_name, models=None, ignores=None)[source]
check_slave(slave, ui_test_name, models=None, ignores=None)[source]
check_app(app, ui_test_name, models=None, ignores=None)[source]
check_filename(dumper, ui_test_name, ignores=None)[source]