armi.bookkeeping.db.tests.test_database3 module

Tests for the Database3 class

class armi.bookkeeping.db.tests.test_database3.TestDatabase3(methodName='runTest')[source]

Bases: unittest.case.TestCase

Tests for the Database3 class

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_writeToDB()[source]
test_getH5File()[source]
makeHistory()[source]

Walk the reactor through a few time steps and write them to the db.

makeShuffleHistory()[source]

Walk the reactor through a few time steps with some shuffling.

test_prepRestartRun()[source]

This test is based on the armiRun.yaml case that is loaded during the setUp above. In that cs, reloadDBName is set to ‘reloadingDB.h5’, startCycle = 1, and startNode = 2. The nonexistent ‘reloadingDB.h5’ must first be created here for this test.

test_computeParents()[source]
test_load()[source]
test_load_updateGlobalAssemNum()[source]
test_history()[source]
test_auxData()[source]
test_replaceNones()[source]

Super basic test that we handle Nones correctly in database read/writes

test_mergeHistory()[source]
test_splitDatabase()[source]
test_grabLocalCommitHash()[source]

test of static method to grab a local commit hash with ARMI version

test_fileName()[source]
test_readInputsFromDB()[source]
test_deleting()[source]
test_open()[source]
test_loadCS()[source]
test_loadBlueprints()[source]