Skip to content

Commit fe2d327

Browse files
committed
Update broad test_wrappedDensity test on all materials
1 parent 6f035d7 commit fe2d327

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

armi/materials/tests/test_materials.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ def test_pseudoDensityKgM3(self):
9696
self.assertEqual(dens * 1000.0, densKgM3)
9797

9898
def test_wrappedDensity(self):
99-
"""Test that the density decorator is applied."""
100-
self.assertTrue(hasattr(self.mat.density, "__wrapped__"))
99+
"""Test that the density decorator is applied to non-fluids."""
100+
self.assertEqual(
101+
hasattr(self.mat.density, "__wrapped__"),
102+
not isinstance(self.mat, materials.Fluid),
103+
msg=self.mat,
104+
)
101105

102106

103107
class MaterialConstructionTests(unittest.TestCase):

0 commit comments

Comments
 (0)