aiida.backends.tests.plugins package

Submodules

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.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_calc_job()[source]

Test the mapper for a CalcJob.

test_calcfunction()[source]

Test the mapper for a calcfunction.

test_external_module_class()[source]

Test the mapper works for a class from an external module.

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.

test_external_module_no_version_attribute()[source]

Test that mapper does not except even if external module does not define __version__ attribute.

test_work_chain()[source]

Test the mapper for a WorkChain.