traitsui.testing.tester.tests.test_ui_wrapper module

class traitsui.testing.tester.tests.test_ui_wrapper.NumberHasTraits[source]

Bases: HasTraits

class traitsui.testing.tester.tests.test_ui_wrapper.StubRegistry(handler=None, solver=None, supported_interaction_classes=(), supported_locator_classes=(), interaction_doc='', location_doc='')[source]

Bases: AbstractTargetRegistry

A stub implementation of the AbstractTargetRegistry for testing

class traitsui.testing.tester.tests.test_ui_wrapper.TestUIWrapperEventProcessed(methodName='runTest')[source]

Bases: TestCase, UnittestTools

Test GUI events are processed and exceptions from the GUI event loop are handled.

test_event_processed()[source]
test_event_processed_prior_to_resolving_location()[source]
test_event_processed_with_exception_captured()[source]
test_exception_not_in_gui()[source]
test_locate_event_processed_optional()[source]
test_perform_event_processed_optional()[source]
class traitsui.testing.tester.tests.test_ui_wrapper.TestUIWrapperHelp(methodName='runTest')[source]

Bases: TestCase

Test calling UIWrapper.help

test_help_message()[source]
test_help_message_nothing_is_supported()[source]
test_help_message_priority_interactions()[source]
class traitsui.testing.tester.tests.test_ui_wrapper.TestUIWrapperInteractionRegistries(methodName='runTest')[source]

Bases: TestCase

Test the logic regarding the order of (interaction) registries.

test_registry_all_declined()[source]
test_registry_priority()[source]
test_registry_selection()[source]
class traitsui.testing.tester.tests.test_ui_wrapper.TestUIWrapperLocationRegistry(methodName='runTest')[source]

Bases: TestCase

Test the use of registries with locate.

test_location_registry_priority()[source]
test_location_registry_selection()[source]
test_registry_all_declined()[source]
traitsui.testing.tester.tests.test_ui_wrapper.example_ui_wrapper(**kwargs)[source]

Return an instance of UIWrapper for testing purposes.

Parameters:

**kwargs – Values to use instead of the default values.

Returns:

wrapper

Return type:

UIWrapper