Skip to content

Commit

Permalink
add pytest.approx for concentrations
Browse files Browse the repository at this point in the history
Adding this function makes the tests more sustaiable,
as the cross section data stored in the ANL link may change
slightly with time
  • Loading branch information
abachma2 committed Jun 28, 2024
1 parent 174b2aa commit 6eebe3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/test_depletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ def test_get_spent_comps(self):
assert 551370000 in spent_comps[0].keys()
assert 922350000 in spent_comps[0].keys()
assert 932410000 not in spent_comps[0].keys()
assert spent_comps[0][922350000] == 10.650004036820036
assert spent_comps[0][942390000] == 0.22663550016678385
assert spent_comps[0][922350000] == pytest.approx(10.650004036820036, rel=1e-5)
assert spent_comps[0][942390000] == pytest.approx(0.22663550016678385, rel=1e-5)

0 comments on commit 6eebe3d

Please sign in to comment.