aiida.backends.tests.manage package¶
Subpackages¶
Submodules¶
Tests for the functionality that reads and modifies the caching configuration file.
-
class
aiida.backends.tests.manage.test_caching.
CacheConfigTest
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Tests the caching configuration.
-
__module__
= 'aiida.backends.tests.manage.test_caching'¶
-
test_contextmanager_disable_global
()[source]¶ Test the disable_caching context manager without specific identifier.
-
test_default
()[source]¶ Verify that when not specifying any specific identifier, the default is used, which is set to True.
-
test_empty_enabled_disabled
()[source]¶ Test that aiida.manage.caching.configure does not except when either enabled or disabled is None.
This will happen when the configuration file specifies either one of the keys but no actual values, e.g.:
profile_name: default: False enabled:
In this case, the dictionary parsed by yaml will contain None for the enabled key. Now this will be unlikely, but the same holds when all values are commented:
profile_name: default: False enabled: # - aiida.calculations:templatereplacer
which is not unlikely to occurr in the wild.
-