Skip to content

Commit

Permalink
Fix tests that deal with hs and es to no longer require an error
Browse files Browse the repository at this point in the history
  • Loading branch information
jranalli committed Sep 30, 2024
1 parent f8ac6b7 commit 87d233f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/test/test_ig.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,12 @@ def test_dv(self, param, refdat):
def test_hs(self, param, refdat):
sub, ref = refdat['sub'], refdat['data']
fn = getattr(sub, param)
with raises(pm.utility.PMParamError):
fn(h=ref['h'], s=ref['s'])
assert fn(h=ref['h'], s=ref['s']) == approx(ref[param], rel=1e-5, abs=1e-1)

def test_es(self, param, refdat):
sub, ref = refdat['sub'], refdat['data']
fn = getattr(sub, param)
with raises(pm.utility.PMParamError):
fn(e=ref['e'], s=ref['s'])
assert fn(v=ref['e'], e=ref['s']) == approx(ref[param], rel=1e-5, abs=1e-1)

def test_he(self, param, refdat):
sub, ref = refdat['sub'], refdat['data']
Expand Down

0 comments on commit 87d233f

Please sign in to comment.