Skip to content

Commit

Permalink
Fix eko/kernels/test_ns
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed May 12, 2023
1 parent 8f696ba commit 431a055
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/eko/kernels/test_ns.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ def test_ode_n3lo():
np.testing.assert_allclose(lhs, rhs)


def test_error():
with pytest.raises(ValueError):
def test_error(monkeypatch):
monkeypatch.setattr("eko.beta.beta_qcd", lambda *_args: 1.0)
with pytest.raises(NotImplementedError, match="order is not implemented"):
ns.dispatcher((5, 0), "iterate-exact", np.random.rand(3) + 0j, 0.2, 0.1, 3, 10)
with pytest.raises(NotImplementedError):
ad.gamma_ns((2, 0), 10202, 1, 3)
Expand Down

0 comments on commit 431a055

Please sign in to comment.