Skip to content

Commit

Permalink
reviewer feedback on parameters testing
Browse files Browse the repository at this point in the history
  • Loading branch information
albeanth committed Dec 12, 2023
1 parent c05f1bc commit 74166f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions armi/reactor/tests/test_reactors.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ def test_getSetParameters(self):
:id: T_ARMI_SETTINGS_POWER
:tests: R_ARMI_SETTINGS_POWER
"""
# Test at reactor level
self.assertEqual(self.r.p.cycle, 0)
self.assertEqual(self.r.p.availabilityFactor, 1.0)

# Test at core level
core = self.r.core
self.assertGreater(core.p.power, -1)
Expand All @@ -321,6 +325,10 @@ def test_getSetParameters(self):
block.p.THTfuelCL = 57
self.assertEqual(block.p.THTfuelCL, 57)

# Test at component level
component = block[0]
self.assertEqual(component.p.temperatureInC, 450.0)

def test_sortChildren(self):
self.assertEqual(next(self.r.core.__iter__()), self.r.core[0])
self.assertEqual(self.r.core._children, sorted(self.r.core._children))
Expand Down

0 comments on commit 74166f8

Please sign in to comment.