HostPlugin#

class pytest_bluezenv.HostPlugin[source]#

Base class for plugins that run code in a VM host.

Example

class Ready(HostPlugin):
    name = "ready"

    def is_ready(self):
        return True
name#

unique name for the plugin

Type:

str

depends#

plugins to be loaded before this one

Type:

tuple[HostPlugin]

value#

object to appear as HostProxy attribute on parent side. If None, the plugin is represented by a proxy object that does RPC calls. Otherwise, must be a serializable value. If it is a subclass of PluginProxy, set_connection is called after plugin load.

Type:

object

__init__()[source]#

Configure a plugin on the upper tester at collection time.

Methods

presetup(config)

Configure a plugin on the upper tester before VM hosts start.

setup(impl)

Initialise a plugin in the VM host.

teardown()

Tear down a plugin in the VM host after its test instance.