Submodules
Unit tests for the AuthInfo ORM class.
-
class
aiida.backends.tests.orm.test_authinfos.
TestAuthinfo
(methodName='runTest')[source]
Bases: aiida.backends.testbase.AiidaTestCase
Unit tests for the AuthInfo ORM class.
-
__module__
= 'aiida.backends.tests.orm.test_authinfos'
-
setUp
()[source]
Hook method for setting up the test fixture before exercising it.
-
test_delete
()[source]
Test deleting a single AuthInfo.
-
test_set_auth_params
()[source]
Test the auth_params setter.
Unit tests for the Comment ORM class.
Bases: aiida.backends.testbase.AiidaTestCase
Unit tests for the Comment ORM class.
Hook method for setting up the test fixture before exercising it.
Hook method for deconstructing the test fixture after testing it.
Test deleting a Comment through the collection.
Test deleting all Comments through the collection.
Test deleting many Comments through the collection.
Test retrieving a Comment through the collection.
Test getting and setting content of a Comment.
Test getting and setting mtime of a Comment.
Test getting the node of a Comment.
Test querying for comments by joining on nodes in the QueryBuilder.
Test getting the user of a Comment.
Test getting a comment from the collection
Tests for the Computer ORM class.
-
class
aiida.backends.tests.orm.test_computers.
TestComputer
(methodName='runTest')[source]
Bases: aiida.backends.testbase.AiidaTestCase
Tests for the Computer ORM class.
-
__module__
= 'aiida.backends.tests.orm.test_computers'
-
test_delete
()[source]
Test the deletion of a Computer instance.
-
test_get_transport
()[source]
Test the get_transport method of Computer
-
class
aiida.backends.tests.orm.test_computers.
TestComputerConfigure
(methodName='runTest')[source]
Bases: aiida.backends.testbase.AiidaTestCase
Tests for the configuring of instance of the Computer ORM class.
-
__module__
= 'aiida.backends.tests.orm.test_computers'
-
setUp
()[source]
Prepare current user and computer builder with common properties.
-
test_configure_local
()[source]
Configure a computer for local transport and check it is configured.
-
test_configure_ssh
()[source]
Configure a computer for ssh transport and check it is configured.
-
test_configure_ssh_invalid
()[source]
Try to configure computer with invalid auth params and check it fails.
Test for general backend entities
-
class
aiida.backends.tests.orm.test_entities.
TestBackendEntitiesAndCollections
(methodName='runTest')[source]
Bases: aiida.backends.testbase.AiidaTestCase
Test backend entities and their collections
-
__module__
= 'aiida.backends.tests.orm.test_entities'
-
test_collections_cache
()[source]
Make sure that we’re not recreating collections each time .objects is called
-
test_collections_count
()[source]
Make sure count() works for collections
Test for the Group ORM class.
-
class
aiida.backends.tests.orm.test_groups.
TestGroups
(methodName='runTest')[source]
Bases: aiida.backends.testbase.AiidaTestCase
Test backend entities and their collections
-
__module__
= 'aiida.backends.tests.orm.test_groups'
-
setUp
()[source]
Remove all existing Groups.
-
test_add_nodes
()[source]
Test different ways of adding nodes.
-
test_clear
()[source]
Test the clear method to remove all nodes.
-
test_count
()[source]
Test the count method.
-
test_creation
()[source]
Test the creation of Groups.
-
test_delete
()[source]
Test Group deletion.
-
test_description
()[source]
Test the update of the description both for stored and unstored groups.
-
test_group_uuid_hashing_for_querybuidler
()[source]
QueryBuilder results should be reusable and shouldn’t brake hashing.
-
test_name_desc
()[source]
Test Group description.
-
test_node_iterator
()[source]
Test the indexing and slicing functionality of the node iterator.
-
test_remove_nodes
()[source]
Test node removal.
-
test_rename
()[source]
Test the renaming of a Group.
-
test_rename_existing
()[source]
Test that renaming to an already existing name is not permitted.
ORM Log tests
-
class
aiida.backends.tests.orm.test_logs.
TestBackendLog
(methodName='runTest')[source]
Bases: aiida.backends.testbase.AiidaTestCase
Test the Log entity
-
__module__
= 'aiida.backends.tests.orm.test_logs'
-
create_log
()[source]
-
setUp
()[source]
Hook method for setting up the test fixture before exercising it.
-
tearDown
()[source]
Delete all the created log entries
-
test_create_log_message
()[source]
Test the manual creation of a log entry
-
test_create_log_unserializable_metadata
()[source]
Test that unserializable data will be removed before reaching the database causing an error.
-
test_db_log_handler
()[source]
Verify that the db log handler is attached correctly
by firing a log message through the regular logging module
attached to a calculation node
-
test_find_filter
()[source]
Test the filter option of log.find
-
test_find_limit
()[source]
Test the limit option of log.find
-
test_find_orderby
()[source]
Test the order_by option of log.find
-
test_log_collection_delete_all
()[source]
Test deleting all Log entries through collection
-
test_log_collection_delete_many
()[source]
Test deleting many Logs through the collection.
-
test_log_delete_single
()[source]
Test that a single log entry can be deleted through the collection.
-
test_log_querybuilder
()[source]
Test querying for logs by joining on nodes in the QueryBuilder
-
test_objects_find
()[source]
Put logs in and find them
-
test_raise_wrong_metadata_type_error
()[source]
Test a TypeError exception is thrown with string metadata.
Also test that metadata is correctly created.
Tests for the ORM mixin classes.
-
class
aiida.backends.tests.orm.test_mixins.
TestSealable
(methodName='runTest')[source]
Bases: aiida.backends.testbase.AiidaTestCase
Tests for the Sealable mixin class.
-
__module__
= 'aiida.backends.tests.orm.test_mixins'
-
static
test_change_updatable_attrs_after_store
()[source]
Verify that a Sealable node can alter updatable attributes even after storing.
-
test_validate_incoming_sealed
()[source]
Verify that trying to add a link to a sealed node will raise.
-
test_validate_outgoing_sealed
()[source]
Verify that trying to add a link from a sealed node will raise.
Unit tests for the QueryBuilder ORM class.
-
class
aiida.backends.tests.orm.test_querybuilder.
TestQueryBuilder
(methodName='runTest')[source]
Bases: aiida.backends.testbase.AiidaTestCase
Unit tests for the QueryBuilder ORM class.
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'
-
test_first_multiple_projections
()[source]
Test first() returns correct types and numbers for multiple projections.