From 0459632e185cdddfeda1e59d0647a2f356c78ef5 Mon Sep 17 00:00:00 2001 From: Jingang Liang Date: Wed, 6 Feb 2019 12:59:29 -0800 Subject: [PATCH] update test_capi.py --- tests/unit_tests/test_capi.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/unit_tests/test_capi.py b/tests/unit_tests/test_capi.py index 420cffc4f..e69d15a27 100644 --- a/tests/unit_tests/test_capi.py +++ b/tests/unit_tests/test_capi.py @@ -130,13 +130,6 @@ def test_nuclide_mapping(capi_init): assert name == nuc.name -def test_load_nuclide(capi_init): - openmc.capi.load_nuclide('H3') - openmc.capi.load_nuclide('Pu239') - with pytest.raises(exc.DataError): - openmc.capi.load_nuclide('Pu3') - - def test_settings(capi_init): settings = openmc.capi.settings assert settings.batches == 10 @@ -394,3 +387,10 @@ def test_restart(capi_init): # Compare the keff values. assert keff0 == pytest.approx(keff1) + + +def test_load_nuclide(capi_init): + openmc.capi.load_nuclide('H3') + openmc.capi.load_nuclide('Pu239') + with pytest.raises(exc.DataError): + openmc.capi.load_nuclide('Pu3')