TC-CCTRL-2.2: Fix user params (#34674)
* TC-CCTRL-2.2: Fix user params
* Restyled by isort
---------
Co-authored-by: Restyled.io <commits@restyled.io>
diff --git a/src/python_testing/TC_CCTRL_2_2.py b/src/python_testing/TC_CCTRL_2_2.py
index edba3ee..8e1c8c5 100644
--- a/src/python_testing/TC_CCTRL_2_2.py
+++ b/src/python_testing/TC_CCTRL_2_2.py
@@ -45,7 +45,7 @@
async def setup_class(self):
super().setup_class()
# TODO: confirm whether we can open processes like this on the TH
- app = self.matter_test_config.user_params.get("th_server_app_path", None)
+ app = self.user_params.get("th_server_app_path", None)
if not app:
asserts.fail('This test requires a TH_SERVER app. Specify app path with --string-arg th_server_app_path:<path_to_app>')
diff --git a/src/python_testing/test_testing/test_TC_CCNTL_2_2.py b/src/python_testing/test_testing/test_TC_CCNTL_2_2.py
index ba884bc..7797177 100644
--- a/src/python_testing/test_testing/test_TC_CCNTL_2_2.py
+++ b/src/python_testing/test_testing/test_TC_CCNTL_2_2.py
@@ -17,13 +17,13 @@
#
import base64
-import click
import os
import pathlib
import sys
import typing
import chip.clusters as Clusters
+import click
from chip import ChipDeviceCtrl
from chip.clusters import Attribute
from chip.interaction_model import InteractionModelError, Status
@@ -180,7 +180,7 @@
pics = {"PICS_SDK_CI_ONLY": True}
test_runner = MyMock('TC_CCTRL_2_2', 'TC_CCTRL_2_2', 'test_TC_CCTRL_2_2', 1, paa_trust_store_path=paa_path, pics=pics)
config = MatterTestConfig()
- config.user_params = {'th_server_app_path': th_server_app}
+ config.global_test_params = {'th_server_app_path': th_server_app}
test_runner.set_test_config(config)
test_runner.run_test_with_mock(dynamic_invoke_return, dynamic_event_return, wildcard())