From 3b573aa4bcc771e5f4e6c467345df00e996eaa95 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Thu, 14 Dec 2023 15:47:24 +0000 Subject: [PATCH] More silly mistakes --- tests/test_calcat_interface2.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_calcat_interface2.py b/tests/test_calcat_interface2.py index 1b7d0ab5d..c436f624a 100644 --- a/tests/test_calcat_interface2.py +++ b/tests/test_calcat_interface2.py @@ -82,10 +82,9 @@ def test_LPD_constant_missing(): ) # Constants are missing for 1 module (LPD05), but it was still included in # the PDUs for the detector, so it should still appear in the lists. - modnos = range(16) - assert lpd_cd.aggregator_names == [f"LPD{m:02}" for m in modnos] - assert lpd_cd.module_nums == modnos - assert lpd_cd.qm_names == [f"Q{(m // 4) + 1}M{(m % 4) + 1}" for m in modnos] + assert lpd_cd.aggregator_names == [f"LPD{m:02}" for m in range(16)] + 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 -- GitLab