02 - Script to parser SDK python tests #622
GitHub Actions / Black
failed
Nov 8, 2024 in 0s
2 errors
Black found 2 errors
Annotations
github-actions / Black
/home/runner/work/certification-tool-backend/certification-tool-backend/test_collections/matter/sdk_tests/support/python_testing/list_python_tests_classes.py#L116-L130
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()
github-actions / Black
/home/runner/work/certification-tool-backend/certification-tool-backend/test_collections/matter/sdk_tests/support/python_testing/models/python_test_parser.py#L91-L108
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":
Loading