aiida.backends.tests.manage.configuration package

Submodules

Tests for the Config class.

class aiida.backends.tests.manage.configuration.test_config.TestConfig(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Tests for the Config class.

__module__ = 'aiida.backends.tests.manage.configuration.test_config'
setUp()[source]

Setup a mock config.

tearDown()[source]

Clean the temporary folder.

test_basic_properties()[source]

Test the basic properties of the Config class.

test_construct_empty_dictionary()[source]

Constructing with empty dictionary should create basic skeleton.

test_default_profile()[source]

Test setting and getting default profile.

test_option()[source]

Test the setter, unsetter and getter of configuration options.

test_profiles()[source]

Test the properties related to retrieving, creating, updating and removing profiles.

test_setting_versions()[source]

Test the version setters.

test_store()[source]

Test that the store method writes the configuration properly to disk.

Tests for the configuration options.

class aiida.backends.tests.manage.configuration.test_options.TestConfigurationOptions(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Tests for the Options class.

__module__ = 'aiida.backends.tests.manage.configuration.test_options'
test_get_config_option_default(**kwargs)
test_get_config_option_global(**kwargs)
test_get_config_option_profile_specific(**kwargs)
test_get_option()[source]

Test get_option function.

test_get_option_names()[source]

Test get_option_names function.

test_options()[source]

Test that all defined options can be converted into Option namedtuples.

test_parse_option()[source]

Test parse_option function.

Tests for the Profile class.

class aiida.backends.tests.manage.configuration.test_profile.TestProfile(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Tests for the Profile class.

__module__ = 'aiida.backends.tests.manage.configuration.test_profile'
classmethod setUpClass(*args, **kwargs)[source]

Setup a mock profile.

test_base_properties()[source]

Test the basic properties of a Profile instance.

test_is_test_profile()[source]

Test that a profile whose name starts with test_ is marked as a test profile.