aiida.backends.tests.orm.utils package¶
Submodules¶
Tests for the CalcJob utils.
-
class
aiida.backends.tests.orm.utils.test_calcjob.
TestCalcJobResultManager
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
Tests for the CalcJobResultManager utility class.
-
__module__
= 'aiida.backends.tests.orm.utils.test_calcjob'¶
-
classmethod
setUpClass
(*args, **kwargs)[source]¶ Define a useful CalcJobNode to test the CalcJobResultManager.
We emulate a node for the TemplateReplacer calculation job class. To do this we have to make sure the process type is set correctly and an output parameter node is created.
-
test_invalid_process_type
()[source]¶ get_results should raise ValueError if CalcJobNode has invalid process_type
-
-
class
aiida.backends.tests.orm.utils.test_loaders.
TestOrmUtils
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
-
__module__
= 'aiida.backends.tests.orm.utils.test_loaders'¶
-
Tests for the Node utils.
-
class
aiida.backends.tests.orm.utils.test_node.
TestLoadNodeClass
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
Tests for the node plugin type generator and loaders.
-
__module__
= 'aiida.backends.tests.orm.utils.test_node'¶
-
Tests for the Repository utility class.
-
class
aiida.backends.tests.orm.utils.test_repository.
TestRepository
(methodName='runTest')[source]¶ Bases:
aiida.backends.testbase.AiidaTestCase
Tests for the node Repository utility class.
-
__module__
= 'aiida.backends.tests.orm.utils.test_repository'¶
-
create_file_tree
(directory, tree)[source]¶ Create a file tree in the given directory.
- Parameters
directory – the absolute path of the directory into which to create the tree
tree – a dictionary representing the tree structure
-