Skip to content

Commit

Permalink
TST: add assertions for a few tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Feb 4, 2021
1 parent 1a6978d commit af2539f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_grid3d/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def test_roffbin_export_v2_banal6():


@tsetup.bigtest
def test_roffbin_bigbox(tmpdir):
def test_roffbin_bigbox():
"""Test roff binary for bigbox, to monitor performance."""
bigbox = TMPDIR / "bigbox.roff"
if not bigbox.is_file():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_grid3d/test_grid_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ def test_banal7(xtgshow):
assert grd.dimensions == (4, 2, 3)
disc = GridProperty(BANAL7, name="DISC")
assert disc.dimensions == (4, 2, 3)
print(disc.values)
assert disc.values.mean() == pytest.approx(0.59091, abs=0.001)

gprops = grd.get_gridquality_properties()
mix = gprops.get_prop_by_name("minangle_sides")
print(mix.values)
assert mix.values.mean() == pytest.approx(81.31036, abs=0.001)

if xtgshow:
lay = 2
Expand Down

0 comments on commit af2539f

Please sign in to comment.