envisage.ui.tasks.tests.test_tasks_application module

class envisage.ui.tasks.tests.test_tasks_application.DummyGUI[source]

Bases: HasTraits

class envisage.ui.tasks.tests.test_tasks_application.LifecycleRecordingGUI(*args, **kwargs)[source]

Bases: Unimplemented

GUI subclass that adds events for watching start and stop of event loop.

start_event_loop()[source]

Extend the base class method to fire the additional events.

starting

Event fired just before we start the event loop.

alias of Event

stopped

Event fired just after we’ve exited the event loop.

alias of Event

class envisage.ui.tasks.tests.test_tasks_application.LifecycleRecordingPlugin[source]

Bases: Plugin

Plugin that fires events when started and stopped.

start()[source]

Start the plugin.

This method will always be empty so that you never have to call ‘super().start()’ if you provide an implementation in a derived class.

The framework does what it needs to do when it starts a plugin by means of the plugin’s activator.

started = Event()

Event fired when plugin starts

stop()[source]

Stop the plugin.

This method will always be empty so that you never have to call ‘super().stop()’ if you provide an implementation in a derived class.

The framework does what it needs to do when it stops a plugin by means of the plugin’s activator.

stopped = Event()

Event fired when plugin stops

class envisage.ui.tasks.tests.test_tasks_application.TestTasksApplication(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_gui_trait_expects_IGUI_interface()[source]
test_layout_load()[source]
test_layout_load_pickle_protocol_3()[source]
test_layout_save_creates_directory()[source]
test_layout_save_with_protocol_3()[source]
test_lifecycle_with_plugin()[source]
test_simple_lifecycle()[source]