Commit b19e388d authored by Jerome Flesch's avatar Jerome Flesch

Core: rename 'tests_plugins' into 'tests_core'

Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@openpaper.work>
parent 70fa412f
......@@ -24,7 +24,7 @@ class PluginBase(object):
"""
pass
def get_implemented_interfaces(self):
def get_interfaces(self):
"""
Indicates the list of interfaces implemented by this plugin.
Interface names are arbitrarily defined. Methods provided by each
......@@ -83,7 +83,7 @@ class Core(object):
plugin = module.Plugin()
self.plugins[module_name] = plugin
for interface in plugin.get_implemented_interfaces():
for interface in plugin.get_interfaces():
LOGGER.debug("- '%s' provides '%s'", module_name, interface)
self.interfaces[interface].append(plugin)
......
......@@ -39,7 +39,7 @@ class TestLoading(unittest.TestCase):
self.init_called = False
self.test_method_called = False
def get_implemented_interfaces(self):
def get_interfaces(self):
return ["test_interface"]
def init(self):
......@@ -157,7 +157,7 @@ class TestCall(unittest.TestCase):
self.init_called_b = False
self.test_method_called_b = False
def get_implemented_interfaces(self):
def get_interfaces(self):
return ["test_interface"]
def init(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment