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'
static test_validate_registered_entry_points()[source]

Test the validate_registered_entry_points function.

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'
test_calculation_factory()[source]

Test the CalculationFactory.

test_data_factory()[source]

Test the DataFactory.

test_db_importer_factory()[source]

Test the DbImporterFactory.

test_orbital_factory()[source]

Test the OrbitalFactory.

test_parser_factory()[source]

Test the ParserFactory.

test_scheduler_factory()[source]

Test the SchedulerFactory.

test_transport_factory()[source]

Test the TransportFactory.

test_workflow_factory()[source]

Test the WorkflowFactory.

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.

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.