From 46993e1e9d6f1bd3acc190c540de63de739c2e5e Mon Sep 17 00:00:00 2001 From: raul-marquez-csa Date: Wed, 22 May 2024 10:43:23 -0700 Subject: [PATCH] Fix restyle --- src/python_testing/matter_testing_support.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/python_testing/matter_testing_support.py b/src/python_testing/matter_testing_support.py index 5416204a25afeb..a50effa95ecd65 100644 --- a/src/python_testing/matter_testing_support.py +++ b/src/python_testing/matter_testing_support.py @@ -320,7 +320,7 @@ def __call__(self, path: TypedAttributePath, transaction: SubscriptionTransactio """This is the subscription callback when an attribute is updated. It checks the passed in attribute is the same as the subscribed to attribute and then posts it into the queue for later processing.""" - + asserts.assert_equal(path.AttributeType, self._expected_attribute, f"[AttributeChangeCallback] Attribute mismatch. Expected: {self._expected_attribute}, received: {path.AttributeType}") logging.info(f"[AttributeChangeCallback] Attribute update callback for {path.AttributeType}") @@ -331,13 +331,15 @@ def wait_for_report(self): try: path, transaction = self._output.get(block=True, timeout=10) except queue.Empty: - asserts.fail(f"[AttributeChangeCallback] Failed to receive a report for the {self._expected_attribute} attribute change") + asserts.fail( + f"[AttributeChangeCallback] Failed to receive a report for the {self._expected_attribute} attribute change") asserts.assert_equal(path.AttributeType, self._expected_attribute, f"[AttributeChangeCallback] Received incorrect report. Expected: {self._expected_attribute}, received: {path.AttributeType}") try: attribute_value = transaction.GetAttribute(path) - logging.info(f"[AttributeChangeCallback] Got attribute subscription report. Attribute {path.AttributeType}. Updated value: {attribute_value}. SubscriptionId: {transaction.subscriptionId}") + logging.info( + f"[AttributeChangeCallback] Got attribute subscription report. Attribute {path.AttributeType}. Updated value: {attribute_value}. SubscriptionId: {transaction.subscriptionId}") except KeyError: asserts.fail("[AttributeChangeCallback] Attribute {expected_attribute} not found in returned report")