mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
update test_capi.py
This commit is contained in:
parent
5f571a5eaf
commit
0459632e18
1 changed files with 7 additions and 7 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue