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.
- customSettingsdict
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.
- customSettingsdict
Dictionary of off-default settings to update
- armi.reactor.tests.test_reactors.loadTestReactor(inputFilePath='/home/runner/work/armi/armi/armi/tests', customSettings=None, inputFileName='armiRun.yaml')[source]¶
Loads a test reactor. Can be used in other test modules.
- Parameters
inputFilePath (str, default=TEST_ROOT) – Path to the directory of the input file.
customSettings (dict with str keys and values of any type, default=None) – For each key in customSettings, the cs which is loaded from the armiRun.yaml will be overwritten to the value given in customSettings for that key.
inputFileName (str, default="armiRun.yaml") – Name of the input file to run.
- Returns
o (Operator)
r (Reactor)
- armi.reactor.tests.test_reactors.reduceTestReactorRings(r, cs, maxNumRings)[source]¶
Helper method for the test reactor above The goal is to reduce the size of the reactor for tests that don’t neeed such a large reactor, and would run much faster with a smaller one
- class armi.reactor.tests.test_reactors.ReactorTests(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.reactor.tests.test_reactors.HexReactorTests(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_reactors.ReactorTests
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_removeAssembliesInRingHex()[source]¶
Since the test reactor is hex, we need to use the overrideCircularRingMode option to remove assemblies from it.
- test_createAssemblyOfTypeExpandedCore()[source]¶
Test creation of new assemblies in an expanded core.
- test_applyThermalExpansion_CoreConstruct()[source]¶
test that assemblies in core are correctly expanded.
all assertions skip the first block as it has no $Delta T$ and does not expand
- class armi.reactor.tests.test_reactors.CartesianReactorTests(methodName='runTest')[source]¶
Bases:
armi.reactor.tests.test_reactors.ReactorTests
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.