From 4229e8a0aed0a0530cefff5ab80bc98385daed8e Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Thu, 14 Dec 2023 16:02:51 +0000 Subject: [PATCH] Correct what API actually does --- tests/test_calcat_interface2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_calcat_interface2.py b/tests/test_calcat_interface2.py index c436f624a..241602eb6 100644 --- a/tests/test_calcat_interface2.py +++ b/tests/test_calcat_interface2.py @@ -86,8 +86,8 @@ def test_LPD_constant_missing(): assert lpd_cd.module_nums == list(range(16)) assert lpd_cd.qm_names == [f"Q{(m // 4) + 1}M{(m % 4) + 1}" for m in range(16)] - assert len(lpd_cd["Offset"].module_nums) == 16 - assert len(lpd_cd["Offset"].constants) == 15 + # When we look at a specific constant, module LPD05 is missing + assert lpd_cd["Offset"].module_nums == list(range(0, 5)) + list(range(6, 16)) @pytest.mark.xfail -- GitLab