aiida.backends.djsite.db.subtests package

Submodules

Generic tests that need the use of the DB

class aiida.backends.djsite.db.subtests.test_generic.TestComputer(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Test the Computer class.

__module__ = 'aiida.backends.djsite.db.subtests.test_generic'
test_deletion()[source]
class aiida.backends.djsite.db.subtests.test_generic.TestDbExtrasDjango(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Test DbAttributes.

__module__ = 'aiida.backends.djsite.db.subtests.test_generic'
test_replacement_1()[source]
class aiida.backends.djsite.db.subtests.test_generic.TestGroupsDjango(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

Test groups.

__module__ = 'aiida.backends.djsite.db.subtests.test_generic'
test_creation_from_dbgroup()[source]
test_query()[source]

Test if queries are working

Tests for nodes, attributes and links

class aiida.backends.djsite.db.subtests.test_nodes.TestNodeBasicDjango(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

__module__ = 'aiida.backends.djsite.db.subtests.test_nodes'
test_attrs_and_extras_wrong_keyname()[source]

Attribute keys cannot include the separator symbol in the key

test_load_nodes()[source]
test_replace_extras_2()[source]

This is a Django specific test which checks (manually) that, when replacing list and dict with objects that have no deepness, no junk is left in the DB (i.e., no ‘dict.a’, ‘list.3.h’, …

test_settings()[source]

Test the settings table (similar to Attributes, but without the key.

class aiida.backends.djsite.db.subtests.test_query.TestQueryBuilderDjango(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

__module__ = 'aiida.backends.djsite.db.subtests.test_query'
test_clsf_django()[source]

This tests the classifications of the QueryBuilder u. the django backend.