armi.reactor.tests.test_reactors module
Testing for reactors.py.
- armi.reactor.tests.test_reactors.buildOperatorOfEmptyHexBlocks(customSettings=None)[source]
Builds a operator w/ a reactor object with some hex assemblies and blocks, but all are empty.
Doesn’t depend on inputs and loads quickly.
- Parameters:
customSettings (dict) – Dictionary of off-default settings to update
- armi.reactor.tests.test_reactors.buildOperatorOfEmptyCartesianBlocks(customSettings=None)[source]
Builds a operator w/ a reactor object with some Cartesian assemblies and blocks, but all are empty.
Doesn’t depend on inputs and loads quickly.
- Parameters:
customSettings (dict) – Off-default settings to update
- class armi.reactor.tests.test_reactors.ReactorTests(methodName='runTest')[source]
Bases:
TestCaseCreate 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.reactor.tests.test_reactors.HexReactorTests(methodName='runTest')[source]
Bases:
ReactorTestsThis is meant to pair with the
HexReactorReadOnlyTestsunit test class.The tests in this class all modify the Reactor object, so we need to create a new test reactor for each test.
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_getSetParameters()[source]
This test works through multiple levels of the data model hierarchy to test ability to modify parameters.
- test_restoreReactor()[source]
Restore a reactor after growing it from third to full core.
Test Case: Convert a third-core to a full-core geometry and then restore it. T_ARMI_THIRD_TO_FULL_CORE1
- test_updateBlockBOLHeights_DBLoad()[source]
Test that blueprints assemblies are expanded in DB load.
- class armi.reactor.tests.test_reactors.HexReactorReadOnlyTests(methodName='runTest')[source]
Bases:
TestCaseThis is meant to pair with the
HexReactorTestsunit test class.The tests in this class only READ, and not WRITE to the Reactor object, so we only have to create one 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_getNumAssemsWithAllRingsBipass()[source]
Test edge case in getNumAssembliesWithAllRingsFilledOut by bypassing some of the logic.
- test_getAssemblyWithLoc()[source]
Get assembly by location, in a couple different ways to ensure they all work.
- class armi.reactor.tests.test_reactors.HexReactorSoloTests(methodName='runTest')[source]
Bases:
ReactorTestsThis is meant to pair with the
HexReactorTestsunit test class.Each test here creates its own, slightly unique, 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.
- class armi.reactor.tests.test_reactors.BigHexReactorTests(methodName='runTest')[source]
Bases:
ReactorTestsThis is meant to pair with the
HexReactorTestsunit test class.These tests all need a larger test reactor. Ideally, we will migrate these to smaller test reactors one day.
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.reactor.tests.test_reactors.CartesianReactorTests(methodName='runTest')[source]
Bases:
ReactorTestsCreate 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.reactor.tests.test_reactors.CartesianReactorNeighborTests(methodName='runTest')[source]
Bases:
ReactorTestsCreate 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.