aiida.backends.tests.plugins package¶
Submodules¶
Tests for the entry_point
module.
-
class
aiida.backends.tests.plugins.test_entry_point.
TestEntryPoint
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
Tests for the
entry_point
module.-
__module__
= 'aiida.backends.tests.plugins.test_entry_point'¶
-
Tests for the factories
module.
-
class
aiida.backends.tests.plugins.test_factories.
TestFactories
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
Tests for the
factories
factory classes.-
__module__
= 'aiida.backends.tests.plugins.test_factories'¶
-
-
aiida.backends.tests.plugins.test_factories.
custom_load_entry_point
(group, name)[source]¶ Function that mocks aiida.plugins.entry_point.load_entry_point that is called by factories.
Tests for utilities dealing with plugins and entry points.
-
class
aiida.backends.tests.plugins.test_utils.
TestPluginVersionProvider
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
Tests for the
PluginVersionProvider
utility class.-
__module__
= 'aiida.backends.tests.plugins.test_utils'¶
-
static
create_dynamic_plugin_module
(plugin, plugin_version, add_module_to_sys=True, add_version=True)[source]¶ Create a fake dynamic module with a certain plugin entity, a class or function and the given version.
-
test_external_module_function
()[source]¶ Test the mapper works for a function from an external module.
-
test_external_module_import_fail
()[source]¶ Test that mapper does not except even if external module cannot be imported.
-