Skip to content

Commit 16ad58e

Browse files
authored
TC-CADMIN-1.11: Remove an unused function (project-chip#41417)
* Is this function called anywhere * linter
1 parent 12634cb commit 16ad58e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/python_testing/TC_CADMIN_1_11.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import logging
3636
import random
3737
from time import sleep
38-
from typing import Optional
3938

4039
from mobly import asserts
4140
from support_modules.cadmin_support import CADMINBaseTest
@@ -66,23 +65,6 @@ async def OpenCommissioningWindow(self, th, expectedErrCode) -> CommissioningPar
6665
asserts.assert_true(errcode.sdk_code == expectedErrCode,
6766
'Unexpected error code returned from CommissioningComplete')
6867

69-
async def OpenBasicCommissioningWindow(self, th: ChipDeviceCtrl, expectedErrCode: Optional[Clusters.AdministratorCommissioning.Enums.StatusCode] = None) -> CommissioningParameters:
70-
if not expectedErrCode:
71-
params = await th.OpenBasicCommissioningWindow(
72-
nodeId=self.dut_node_id, timeout=self.timeout)
73-
return params
74-
75-
else:
76-
ctx = asserts.assert_raises(ChipStackError)
77-
with ctx:
78-
await th.OpenBasicCommissioningWindow(
79-
nodeId=self.dut_node_id, timeout=self.timeout)
80-
errcode = ctx.exception.chip_error
81-
logging.info('Commissioning complete done. Successful? {}, errorcode = {}'.format(errcode.is_success, errcode))
82-
asserts.assert_false(errcode.is_success, 'Commissioning complete did not error as expected')
83-
asserts.assert_true(errcode.sdk_code == expectedErrCode,
84-
'Unexpected error code returned from CommissioningComplete')
85-
8668
def steps_TC_CADMIN_1_11(self) -> list[TestStep]:
8769
return [
8870
TestStep(1, "Commissioning, already done", is_commissioning=True),

0 commit comments

Comments
 (0)