test semantics
This commit is contained in:
@@ -148,6 +148,7 @@ class CleanReleaseCompliancePlugin:
|
||||
# @PURPOSE: Provide minimal plugin loader contract used by TaskManager in integration tests.
|
||||
# @INVARIANT: has_plugin/get_plugin only acknowledge the seeded compliance plugin id.
|
||||
class _PluginLoaderStub:
|
||||
# @CONTRACT: Partial PluginLoader stub. Implements: has_plugin, get_plugin. Stubs (NotImplementedError): list_plugins, get_all_plugins, get_all_plugin_configs.
|
||||
def __init__(self, plugin: CleanReleaseCompliancePlugin):
|
||||
self._plugin = plugin
|
||||
|
||||
@@ -159,6 +160,21 @@ class _PluginLoaderStub:
|
||||
raise ValueError("Plugin not found")
|
||||
return self._plugin
|
||||
|
||||
def list_plugins(self):
|
||||
raise NotImplementedError(
|
||||
"list_plugins not implemented in _PluginLoaderStub; add if test path requires plugin enumeration"
|
||||
)
|
||||
|
||||
def get_all_plugins(self):
|
||||
raise NotImplementedError(
|
||||
"get_all_plugins not implemented in _PluginLoaderStub; add if test path requires full plugin set"
|
||||
)
|
||||
|
||||
def get_all_plugin_configs(self):
|
||||
raise NotImplementedError(
|
||||
"get_all_plugin_configs not implemented in _PluginLoaderStub; add if test path requires plugin configs"
|
||||
)
|
||||
|
||||
|
||||
# [/DEF:_PluginLoaderStub:Class]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user