Skip to content

Commit

Permalink
Fixing broken req test crumbs (#1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science authored Nov 21, 2023
1 parent bb78218 commit e2dba79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions armi/nucDirectory/tests/test_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_element_elementByNameReturnsElement(self):
"""Get elements by name.
.. test:: Get elements by name.
:id: I_ARMI_ND_ELEMENTS0
:id: T_ARMI_ND_ELEMENTS0
:tests: R_ARMI_ND_ELEMENTS
"""
for ee in elements.byZ.values():
Expand All @@ -48,7 +48,7 @@ def test_element_elementByZReturnsElement(self):
"""Get elements by Z.
.. test:: Get elements by Z.
:id: I_ARMI_ND_ELEMENTS1
:id: T_ARMI_ND_ELEMENTS1
:tests: R_ARMI_ND_ELEMENTS
"""
for ee in elements.byZ.values():
Expand All @@ -58,7 +58,7 @@ def test_element_elementBySymbolReturnsElement(self):
"""Get elements by symbol.
.. test:: Get elements by symbol.
:id: I_ARMI_ND_ELEMENTS2
:id: T_ARMI_ND_ELEMENTS2
:tests: R_ARMI_ND_ELEMENTS
"""
for ee in elements.byZ.values():
Expand Down Expand Up @@ -104,7 +104,7 @@ def test_element_isNaturallyOccurring(self):
occurring. Yeah it exists as a U235 decay product but it's kind of pseudo-natural.
.. test:: Get elements by Z, to show if they are naturally occurring.
:id: I_ARMI_ND_ELEMENTS3
:id: T_ARMI_ND_ELEMENTS3
:tests: R_ARMI_ND_ELEMENTS
"""
for ee in elements.byZ.values():
Expand All @@ -129,7 +129,7 @@ def test_isHeavyMetal(self):
"""Get elements by Z.
.. test:: Get elements by Z, to show if they are heavy metals.
:id: I_ARMI_ND_ELEMENTS4
:id: T_ARMI_ND_ELEMENTS4
:tests: R_ARMI_ND_ELEMENTS
"""
for ee in elements.byZ.values():
Expand Down
16 changes: 8 additions & 8 deletions armi/nucDirectory/tests/test_nuclideBases.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_nucBases_labelAndNameCollsionsAreForSameNuclide(self):
"""The name and labels for correct for nuclides.
.. test:: Validate the name, label, and DB name are accessible for nuclides.
:id: I_ARMI_ND_ISOTOPES0
:id: T_ARMI_ND_ISOTOPES0
:tests: R_ARMI_ND_ISOTOPES
"""
count = 0
Expand Down Expand Up @@ -194,7 +194,7 @@ def test_nucBases_imposeBurn_nuSF(self):
"""Test the nuclide data from file (specifically neutrons / sponaneous fission).
.. test:: Test that nuclide data was read from file instead of code.
:id: I_ARMI_ND_DATA0
:id: T_ARMI_ND_DATA0
:tests: R_ARMI_ND_DATA
"""
actual = {
Expand Down Expand Up @@ -250,7 +250,7 @@ def test_nucBases_Am242m(self):
"""Test the correct am242g and am242m abbreviations are supported.
.. test:: Specifically test for Am242 and Am242g because it is a special case.
:id: I_ARMI_ND_ISOTOPES1
:id: T_ARMI_ND_ISOTOPES1
:tests: R_ARMI_ND_ISOTOPES
"""
am242m = nuclideBases.byName["AM242"]
Expand Down Expand Up @@ -284,7 +284,7 @@ def test_getEndfMatNum(self):
"""Test get nuclides by name.
.. test:: Test get nuclides by name.
:id: I_ARMI_ND_ISOTOPES2
:id: T_ARMI_ND_ISOTOPES2
:tests: R_ARMI_ND_ISOTOPES
"""
self.assertEqual(nuclideBases.byName["U235"].getEndfMatNum(), "9228")
Expand Down Expand Up @@ -392,7 +392,7 @@ def test_loadMcc2Data(self):
"""Tests consistency with the `mcc-nuclides.yaml` input and the nuclides in the data model.
.. test:: Test that MCC v2 IDs can be queried by nuclides.
:id: I_ARMI_ND_ISOTOPES3
:id: T_ARMI_ND_ISOTOPES3
:tests: R_ARMI_ND_ISOTOPES
"""
with open(os.path.join(RES, "mcc-nuclides.yaml")) as f:
Expand All @@ -413,11 +413,11 @@ def test_loadMcc3Data(self):
"""Tests consistency with the `mcc-nuclides.yaml` input and the nuclides in the data model.
.. test:: Test that MCC v3 IDs can be queried by nuclides.
:id: I_ARMI_ND_ISOTOPES4
:id: T_ARMI_ND_ISOTOPES4
:tests: R_ARMI_ND_ISOTOPES
.. test:: Test the MCC nuclide data that was read from file instead of code.
:id: I_ARMI_ND_DATA1
:id: T_ARMI_ND_DATA1
:tests: R_ARMI_ND_DATA
"""
with open(os.path.join(RES, "mcc-nuclides.yaml")) as f:
Expand All @@ -441,7 +441,7 @@ def test_AAAZZZSNameGenerator(self):
"""Test that AAAZZS ID name generator.
.. test:: Query the AAAZZS IDs can be retrieved for nuclides.
:id: I_ARMI_ND_ISOTOPES5
:id: T_ARMI_ND_ISOTOPES5
:tests: R_ARMI_ND_ISOTOPES
"""
referenceNucNames = [
Expand Down

0 comments on commit e2dba79

Please sign in to comment.