envisage.tests.test_application module

Tests for applications and plugins.

class envisage.tests.test_application.ApplicationTestCase(methodName='runTest')[source]

Bases: TestCase

Tests for applications and plugins.

setUp()[source]

Prepares the test fixture before each test method is called.

test_add_extension_point_listener()[source]

add extension point listener

test_add_plugin()[source]

add plugin

test_extension_point()[source]

extension point

test_extension_point_resolution_occurs_after_plugin_start()[source]
test_get_plugin()[source]

get plugin

test_home()[source]

home

test_no_plugins()[source]

no plugins

test_remove_extension_point_listener()[source]

remove extension point listener

test_remove_plugin()[source]

remove plugin

test_set_plugin_manager_at_contruction_time()[source]

set plugin manager at construction time

test_start_and_stop_errors()[source]

start and stop errors

test_veto_starting()[source]

veto starting

test_veto_stopping()[source]

veto stopping

class envisage.tests.test_application.BadPlugin[source]

Bases: Plugin

A plugin that just causes trouble ;^).

start()[source]

Start the plugin.

stop()[source]

Stop the plugin.

class envisage.tests.test_application.PluginD[source]

Bases: Plugin

Plugin that expects to be started before contributing to extension points.

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.

class envisage.tests.test_application.PluginE[source]

Bases: Plugin

Another plugin that expects to be started before contributing to extension points.

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.

class envisage.tests.test_application.SimplePlugin[source]

Bases: Plugin

A simple plugin.

start()[source]

Start the plugin.

stop()[source]

Stop the plugin.

envisage.tests.test_application.vetoer(event)[source]

An observer that will veto an event.