From 190075007fd4364a2933001b1713ff3475b9c335 Mon Sep 17 00:00:00 2001 From: Jake Ororke Date: Mon, 4 Nov 2024 10:08:27 -0800 Subject: [PATCH] Update TC_CADMIN_1_22_24.py -Updating to changing static value to being stored in variable for easier readability as Terrence has suggested, making the code easier to read. --- src/python_testing/TC_CADMIN_1_22_24.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python_testing/TC_CADMIN_1_22_24.py b/src/python_testing/TC_CADMIN_1_22_24.py index 94bc065479944c..2309aaf87fcacf 100644 --- a/src/python_testing/TC_CADMIN_1_22_24.py +++ b/src/python_testing/TC_CADMIN_1_22_24.py @@ -164,7 +164,8 @@ async def test_TC_CADMIN_1_24(self): # Since we provided 179 seconds as the timeout duration, # we should not be able to open comm window as duration is too long. # we are expected receive Failed to open commissioning window: IM Error 0x00000585: General error: 0x85 (INVALID_COMMAND) - asserts.assert_equal(e.err, 0x00000585, + _INVALID_COMMAND = 0x00000585 + asserts.assert_equal(e.err, _INVALID_COMMAND, "Expected to error as we provided failure value for opening commissioning window") self.step(6)