armi.bookkeeping.tests.test_databaseInterface module¶
Tests of the Database Interface
- armi.bookkeeping.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.tests.test_databaseInterface.MockInterface(r, cs, action=None)[source]¶
Bases:
armi.interfaces.Interface
- class armi.bookkeeping.tests.test_databaseInterface.TestDatabaseInterface(methodName='runTest')[source]¶
Bases:
unittest.case.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.
- class armi.bookkeeping.tests.test_databaseInterface.TestDatabaseWriter(methodName='runTest')[source]¶
Bases:
unittest.case.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.tests.test_databaseInterface.TestDatabaseReading(methodName='runTest')[source]¶
Bases:
unittest.case.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.tests.test_databaseInterface.TestBadName(methodName='runTest')[source]¶
Bases:
unittest.case.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.tests.test_databaseInterface.TestStandardFollowOn(methodName='runTest')[source]¶
Bases:
unittest.case.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.