From 673cea666a0bcccd69ae1a45cc54f101163057ed Mon Sep 17 00:00:00 2001 From: Romulo Quidute Filho <116586593+rquidute@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:00:56 -0300 Subject: [PATCH] Updated backend version (#63) * Updated backend version * Fixed spell check violation * Fixed code violation * Fixed code violation --- .version_information | 2 +- .../python_testing/models/python_test_parser.py | 12 ++++++------ .../support/python_testing/models/test_case.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.version_information b/.version_information index 1e00d93..00e1902 100644 --- a/.version_information +++ b/.version_information @@ -1 +1 @@ -2.10-beta2.1+spring2024 +2.10-beta2.2+spring2024 diff --git a/test_collections/sdk_tests/support/python_testing/models/python_test_parser.py b/test_collections/sdk_tests/support/python_testing/models/python_test_parser.py index 8fcda17..e7efc1d 100644 --- a/test_collections/sdk_tests/support/python_testing/models/python_test_parser.py +++ b/test_collections/sdk_tests/support/python_testing/models/python_test_parser.py @@ -29,11 +29,11 @@ KEYWORD_IS_COMISSIONING_INDEX = 0 TC_FUNCTION_PATTERN = re.compile(r"[\S]+_TC_[\S]+") -# This constant is a temporary fix for TE2 +# This constant is a temporarily fix for TE2 # Issue: https://github.com/project-chip/certification-tool/issues/152 TC_FUNCTION_PATTERN_WORKAROUND = re.compile(r"[\S]+_[\S]+") TC_TEST_FUNCTION_PATTERN = re.compile(r"test_(?PTC_[\S]+)") -# This constant is a temporary fix for TE2 +# This constant is a temporarily fix for TE2 # Issue: https://github.com/project-chip/certification-tool/issues/152 TC_TEST_FUNCTION_PATTERN_WORKAROUND = re.compile(r"test_(?P<title>[\S]+_[0-9]+_[0-9]+)") @@ -117,7 +117,7 @@ def __test_methods(class_def: ast.ClassDef) -> list[FunctionDefType]: # THIS IS A WORKAROUND CODE for TE2 # Some Python tests written in SDK repo are not following the test method # template, test_TC_[TC_name] - # So this code temporaly code to consider other methods signature as a + # So this code temporarily code to consider other methods signature as a # python test script. # Issue: https://github.com/project-chip/certification-tool/issues/152 if re.match(TC_FUNCTION_PATTERN_WORKAROUND, m.name): @@ -145,7 +145,7 @@ def __test_case_names(methods: list[FunctionDefType]) -> list[str]: # THIS IS A WORKAROUND CODE for TE2 # Some Python tests written in SDK repo are not following the test method # template, test_TC_[TC_name] - # So this code temporaly code to consider other methods signature as a + # So this code temporarily code to consider other methods signature as a # python test script. # Issue: https://github.com/project-chip/certification-tool/issues/152 elif match := re.match(TC_TEST_FUNCTION_PATTERN_WORKAROUND, m.name): @@ -199,8 +199,8 @@ def __parse_test_case( # THIS IS A WORKAROUND CODE for TE2 # The TC_DGGEN_2_4 test case is not following the test method template if tc_name == "TC_GEN_2_4": - tc_name = "TC_DGGEN_2_4" - tc_desc = "TC_DGGEN_2_4" + tc_name = "TC_DGGEN_2_4" # spell-checker: disable + tc_desc = "TC_DGGEN_2_4" # spell-checker: disable return PythonTest( name=tc_name, diff --git a/test_collections/sdk_tests/support/python_testing/models/test_case.py b/test_collections/sdk_tests/support/python_testing/models/test_case.py index 4833859..09764fd 100644 --- a/test_collections/sdk_tests/support/python_testing/models/test_case.py +++ b/test_collections/sdk_tests/support/python_testing/models/test_case.py @@ -212,7 +212,7 @@ async def execute(self) -> None: # THIS IS A WORKAROUND CODE for TE2 # Issue: https://github.com/project-chip/certification-tool/issues/152 test_name = self.python_test.name - if test_name == "TC_DGGEN_2_4": + if test_name == "TC_DGGEN_2_4": # spell-checker: disable test_name = "TC_GEN_2_4" elif test_name in [ "TC_DT_1_1",