armi.bookkeeping.db.tests.test_databaseInterface module
Tests of the Database Interface.
- armi.bookkeeping.db.tests.test_databaseInterface.getSimpleDBOperator(cs)[source]
Return a very simple operator that covers most of the database interactions.
Notes
This reactor has only 1 assembly with 1 type of block. It’s used to make the db unit tests run very quickly.
- class armi.bookkeeping.db.tests.test_databaseInterface.MockInterface(r, cs, action=None)[source]
Bases:
Interface
- class armi.bookkeeping.db.tests.test_databaseInterface.TestDatabaseInterfaceBOL(methodName='runTest')[source]
Bases:
TestCase
Test the DatabaseInterface class at the BOL.
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_databaseInterface.TestDatabaseInterface(methodName='runTest')[source]
Bases:
TestCase
Tests for the DatabaseInterface 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_demonstrateWritingInteractions()[source]
Test what nodes are written to the database during the interaction calls.
- test_interactEveryNodeReturnTightCoupling()[source]
Test that the DB is NOT written to if cs[“tightCoupling”] = True.
- test_timeNodeLoop_tightCoupling()[source]
Test that database is written out after the coupling loop has completed.
- class armi.bookkeeping.db.tests.test_databaseInterface.TestDatabaseWriter(methodName='runTest')[source]
Bases:
TestCase
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_databaseInterface.TestDatabaseReading(methodName='runTest')[source]
Bases:
TestCase
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_databaseInterface.TestBadName(methodName='runTest')[source]
Bases:
TestCase
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_databaseInterface.TestStandardFollowOn(methodName='runTest')[source]
Bases:
TestCase
Tests related to doing restart runs (loading from DB with Standard operator).
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.