Skip to content

Commit

Permalink
Restyled by autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and j-ororke committed Oct 23, 2024
1 parent 2bc7233 commit 971cf6f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/python_testing/TC_CADMIN_1_19.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from chip.testing.matter_testing import MatterBaseTest, TestStep, async_test_body, default_matter_test_main
from mobly import asserts


class TC_CADMIN_1_19(MatterBaseTest):
def generate_unique_random_value(self, value):
while True:
Expand Down Expand Up @@ -69,7 +70,7 @@ def steps_TC_CADMIN_1_19(self) -> list[TestStep]:
TestStep(6, "TH reads the CommissionedFabrics attributes from the Node Operational Credentials cluster.",
"Verify this is equal to max_fabrics"),
TestStep(
7, "TH_CR1 send an OpenCommissioningWindow command to DUT_CE using a commissioning timeout of max_window_duration", "{resDutSuccess}"),
7, "TH_CR1 send an OpenCommissioningWindow command to DUT_CE using a commissioning timeout of max_window_duration", "{resDutSuccess}"),
TestStep(8, "TH creates a controller on a new fabric and commissions DUT_CE using that controller",
"Verify DUT_CE responds with NOCResponse with a StatusCode field value of TableFull(5)"),
TestStep(9, "Repeat the following steps (9a and 9b) for each controller (TH_CRn) created by this test"),
Expand Down Expand Up @@ -138,7 +139,8 @@ async def test_TC_CADMIN_1_19(self):
self.step(8)
# TH creates a controller on a new fabric and commissions DUT_CE using that controller
fids_ca_dir[current_fabrics + 1] = self.certificate_authority_manager.NewCertificateAuthority()
fids_fa_dir[current_fabrics + 1] = fids_ca_dir[current_fabrics + 1].NewFabricAdmin(vendorId=0xFFF1, fabricId=current_fabrics + 1)
fids_fa_dir[current_fabrics + 1] = fids_ca_dir[current_fabrics +
1].NewFabricAdmin(vendorId=0xFFF1, fabricId=current_fabrics + 1)
try:
fids[current_fabrics + 1] = fids_fa_dir[current_fabrics + 1].NewController(nodeId=current_fabrics + 1)
await fids[current_fabrics + 1].CommissionOnNetwork(
Expand All @@ -153,7 +155,6 @@ async def test_TC_CADMIN_1_19(self):
asserts.assert_equal(e.err, 0x0000000B,
"Expected to return table is full since max number of fabrics has been created already")


self.step(9)
for thc in fids.keys():
# Make sure that current test step is 11 (9 + 2 since 5a and 5b test steps included in count), resets here after each loop
Expand Down

0 comments on commit 971cf6f

Please sign in to comment.