From b8d64b878e2668aade95fdb08c8e1b528df28998 Mon Sep 17 00:00:00 2001 From: robinzyb <38876805+robinzyb@users.noreply.github.com> Date: Wed, 13 Dec 2023 21:22:07 +0100 Subject: [PATCH] bug fixes: fix test workflow python version 3.9 and 3.10 in github actions --- tests/test_cube/test_cube.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_cube/test_cube.py b/tests/test_cube/test_cube.py index 544bfd4..9bab8b6 100644 --- a/tests/test_cube/test_cube.py +++ b/tests/test_cube/test_cube.py @@ -43,15 +43,21 @@ def test_cube_vals(self, cube_and_answer): def test_pav(self, cube_and_answer): cube = cube_and_answer[0] answer_dir = cube_and_answer[1] - pav = cube.get_pav() + pav_x, pav = cube.get_pav() pav_answer = np.load(os.path.join(answer_dir, "pav.npy")) + pav_x_answer = pav_answer[0] + pav_answer = pav_answer[1] assert np.all(pav == pav_answer) + assert np.all(pav_x == pav_x_answer) def test_mav(self, cube_and_answer): cube = cube_and_answer[0] answer_dir = cube_and_answer[1] - mav = cube.get_mav(l1=1, l2=1, ncov=2) + mav_x, mav = cube.get_mav(l1=1, l2=1, ncov=2) mav_answer = np.load(os.path.join(answer_dir, "mav.npy")) + mav_x_answer = mav_answer[0] + mav_answer = mav_answer[1] assert np.all(mav == mav_answer) + assert np.all(mav_x == mav_x_answer)