aiida.backends.tests.orm package¶
Subpackages¶
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'¶
-
Unit tests for the Comment ORM class.
-
class
aiida.backends.tests.orm.test_comments.
TestComment
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
Unit tests for the Comment ORM class.
-
__module__
= 'aiida.backends.tests.orm.test_comments'¶
-
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'¶
-
-
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'¶
-
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 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'¶
-
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'¶
-
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
-
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.
-
Tests for the QueryBuilder.
-
class
aiida.backends.tests.orm.test_querybuilder.
QueryBuilderJoinsTests
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
test_joins_group_node
()[source]¶ This test checks that the querying for the nodes that belong to a group works correctly (using QueryBuilder). This is important for the Django backend with the use of aldjemy for the Django to SQLA schema translation. Since this is not backend specific test (even if it is mainly used to test the querying of Django backend with QueryBuilder), we keep it at the general tests (ran by both backends).
-
-
class
aiida.backends.tests.orm.test_querybuilder.
QueryBuilderLimitOffsetsTest
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
-
class
aiida.backends.tests.orm.test_querybuilder.
QueryBuilderPath
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
-
class
aiida.backends.tests.orm.test_querybuilder.
TestAttributes
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
-
class
aiida.backends.tests.orm.test_querybuilder.
TestConsistency
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
test_create_node_and_query
()[source]¶ Testing whether creating nodes within a iterall iteration changes the results.
-
test_len_results
()[source]¶ Test whether the len of results matches the count returned. See also https://github.com/aiidateam/aiida-core/issues/1600 SQLAlchemy has a deduplication strategy that leads to strange behavior, tested against here
-
-
class
aiida.backends.tests.orm.test_querybuilder.
TestDoubleStar
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
In this test class we check if QueryBuilder returns the correct results when double star is provided as projection.
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
-
class
aiida.backends.tests.orm.test_querybuilder.
TestManager
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
-
class
aiida.backends.tests.orm.test_querybuilder.
TestMultipleProjections
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
Unit tests for the QueryBuilder ORM class.
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
-
class
aiida.backends.tests.orm.test_querybuilder.
TestQueryBuilder
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
test_direction_keyword
()[source]¶ The direction keyword is a special case with the QueryBuilder append method, so some tests are good.
-
-
class
aiida.backends.tests.orm.test_querybuilder.
TestQueryBuilderCornerCases
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
In this class corner cases of QueryBuilder are added.
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-
-
class
aiida.backends.tests.orm.test_querybuilder.
TestQueryHelp
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
-
__module__
= 'aiida.backends.tests.orm.test_querybuilder'¶
-