02 - Script to parser SDK python tests #622
Annotations
8 errors and 2 warnings
/home/runner/work/certification-tool-backend/certification-tool-backend/test_collections/matter/sdk_tests/support/python_testing/list_python_tests_classes.py#L116
complete_json_path = COMPLETE_JSON_OUTPUT_FILE_FOLDER / "python_tests_info.json"
# complete_json.append({"sdk_sha": matter_settings.SDK_SHA})
# Create a wrapper object with sdk_sha at root level
- json_output = {
- "sdk_sha": matter_settings.SDK_SHA,
- "tests": complete_json
- }
+ json_output = {"sdk_sha": matter_settings.SDK_SHA, "tests": complete_json}
with open(complete_json_path, "w") as json_file:
json.dump(json_output, json_file, indent=4, sort_keys=True)
json_file.close()
|
/home/runner/work/certification-tool-backend/certification-tool-backend/test_collections/matter/sdk_tests/support/python_testing/models/python_test_parser.py#L91
label=step_description,
is_commissioning=is_commssioning,
)
)
- # - PythonTestType.COMMISSIONING: test cases that have a commissioning first
+ # - PythonTestType.COMMISSIONING: test cases that have a commissioning first
# step
- # - PythonTestType.NO_COMMISSIONING: test cases that follow the expected
+ # - PythonTestType.NO_COMMISSIONING: test cases that follow the expected
# template but don't have a commissioning first step
# - PythonTestType.LEGACY: test cases that don't follow the expected template
# - PythonTestType.MANDATORY: Mandatory test cases
- # We use the desc_[test_name] method as an indicator that the test case follows
+ # We use the desc_[test_name] method as an indicator that the test case follows
# the expected template
if test_name in mandatory_python_tcs_public_id:
python_test_type = PythonTestType.MANDATORY
elif len(test_steps) == 1 and test_steps[0].label == "Run entire test":
|
test_collections/matter/sdk_tests/support/python_testing/list_python_tests_classes.py#L39
Line too long (135 > 88 characters) (E501)
|
test_collections/matter/sdk_tests/support/python_testing/models/python_test_parser.py#L96
Trailing whitespace (W291)
|
test_collections/matter/sdk_tests/support/python_testing/models/python_test_parser.py#L98
Trailing whitespace (W291)
|
test_collections/matter/sdk_tests/support/python_testing/models/python_test_parser.py#L102
Trailing whitespace (W291)
|
test_collections/matter/sdk_tests/support/python_testing/sdk_python_tests.py#L17
'pathlib.Path' imported but unused (F401)
|
test_collections/matter/sdk_tests/support/python_testing/sdk_python_tests.py#L20
'test_collections.matter.config.matter_settings' imported but unused (F401)
|
Run linters
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-python@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run linters
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-python@v1, wearerequired/lint-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|