From 431a0556980246fdabd0a1c2cc61c749253275ce Mon Sep 17 00:00:00 2001 From: Felix Hekhorn Date: Fri, 12 May 2023 11:45:46 +0200 Subject: [PATCH] Fix eko/kernels/test_ns --- tests/eko/kernels/test_ns.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/eko/kernels/test_ns.py b/tests/eko/kernels/test_ns.py index 7b3c16a3c..013fc5433 100644 --- a/tests/eko/kernels/test_ns.py +++ b/tests/eko/kernels/test_ns.py @@ -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)