armi.bookkeeping.db.tests.test_database3 module
Tests for the Database class.
- class armi.bookkeeping.db.tests.test_database3.TestDatabase(methodName='runTest')[source]
Bases:
TestCase
Tests for the Database class that require a large, complicated reactor.
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.
- class armi.bookkeeping.db.tests.test_database3.TestDatabaseSmaller(methodName='runTest')[source]
Bases:
TestCase
Tests for the Database class, that can use a smaller test reactor.
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_getH5File()[source]
Get the h5 file for the database, because that file format is language-agnostic.
- test_replaceNones()[source]
Super basic test that we handle Nones correctly in database read/writes.
- test_grabLocalCommitHash()[source]
Test of static method to grab a local commit hash with ARMI version.
- class armi.bookkeeping.db.tests.test_database3.TestWriteReadDatabase(methodName='runTest')[source]
Bases:
TestCase
Round-trip tests that we can write/read data to and from a Database.
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.
- SMALL_YAML = '!include refOneBlockReactor.yaml\nsystems:\n core:\n grid name: core\n origin:\n x: 0.0\n y: 0.0\n z: 0.0\n sfp:\n type: sfp\n grid name: sfp\n origin:\n x: 1000.0\n y: 1000.0\n z: 1000.0\n evst:\n type: excore\n grid name: evst\n origin:\n x: 2000.0\n y: 2000.0\n z: 2000.0\ngrids:\n core:\n geom: hex_corners_up\n lattice map: |\n IC\n symmetry: full\n evst:\n lattice pitch:\n x: 32.0\n y: 32.0\n geom: hex\n symmetry: full\n'