mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-23 19:45:34 -04:00
Run pytest verbosely
This commit is contained in:
parent
74a28519d0
commit
147bbefbe7
2 changed files with 5 additions and 5 deletions
|
|
@ -62,6 +62,6 @@ script:
|
|||
./check_source.py;
|
||||
else
|
||||
./run_tests.py -C $OPENMC_CONFIG -j 2 &&
|
||||
pytest --cov=../openmc unit_tests/;
|
||||
pytest --cov=../openmc -v unit_tests/;
|
||||
fi
|
||||
- cd ..
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from openmc import Material
|
||||
from openmc.data import NATURAL_ABUNDANCE, atomic_mass
|
||||
|
|
@ -31,11 +31,11 @@ def test_element_wo():
|
|||
|
||||
if nuc in ('H1', 'H2'):
|
||||
val = 2 * NATURAL_ABUNDANCE[nuc] * atomic_mass(nuc) / water_am
|
||||
assert np.isclose(densities[nuc][1], val, rtol=1.e-8)
|
||||
assert densities[nuc][1] == pytest.approx(val)
|
||||
if nuc == 'O16':
|
||||
val = (NATURAL_ABUNDANCE[nuc] + NATURAL_ABUNDANCE['O18']) \
|
||||
* atomic_mass(nuc) / water_am
|
||||
assert np.isclose(densities[nuc][1], val, rtol=1.e-8)
|
||||
assert densities[nuc][1] == pytest.approx(val)
|
||||
if nuc == 'O17':
|
||||
val = NATURAL_ABUNDANCE[nuc] * atomic_mass(nuc) / water_am
|
||||
assert np.isclose(densities[nuc][1], val, rtol=1.e-8)
|
||||
assert densities[nuc][1] == pytest.approx(val)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue