aiida.backends.djsite.db.subtests package

Submodules

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

Bases: aiida.backends.testbase.AiidaTestCase

__module__ = 'aiida.backends.djsite.db.subtests.djangomigrations'
test_unexpected_calc_states()[source]

Generic tests that need the use of the DB

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

Bases: aiida.backends.testbase.AiidaTestCase

Test the Computer class.

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

Bases: aiida.backends.testbase.AiidaTestCase

Test DbAttributes.

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

Bases: aiida.backends.testbase.AiidaTestCase

Test groups.

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

Test if queries are working

Tests for nodes, attributes and links

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

Bases: aiida.backends.testbase.AiidaTestCase

These tests check the features of Data nodes that differ from the base Node

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

Bases: aiida.backends.testbase.AiidaTestCase

__module__ = 'aiida.backends.djsite.db.subtests.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.nodes.TestTransitiveClosureDeletionDjango(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

__module__ = 'aiida.backends.djsite.db.subtests.nodes'
test_creation_and_deletion()[source]
class aiida.backends.djsite.db.subtests.query.TestQueryBuilderDjango(methodName='runTest')[source]

Bases: aiida.backends.testbase.AiidaTestCase

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

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