Skip to content

Add python tests model classes #69

Add python tests model classes

Add python tests model classes #69

Triggered via pull request November 22, 2023 12:33
@rquiduterquidute
synchronize #19
Status Failure
Total duration 36s
Artifacts

python-lint.yml

on: pull_request_target
Run linters
28s
Run linters
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
test_collections/sdk_tests/support/python_testing/models/python_test_parser.py#L18
'typing.Optional' imported but unused (F401)
test_collections/sdk_tests/support/python_testing/models/test_case.py#L24
'app.chip_tool.chip_tool.ChipToolTestType' imported but unused (F401)
test_collections/sdk_tests/support/python_testing/models/test_case.py#L25
'app.chip_tool.test_case.ChipToolTest' imported but unused (F401)
test_collections/sdk_tests/support/yaml_tests/sdk_yaml_tests.py#L30
'test_collections.sdk_tests.support.models.matter_test_models.MatterTestStep' imported but unused (F401)
/home/runner/work/certification-tool-backend/certification-tool-backend/app/tests/python_tests/test_python_parser.py#L71
new=mock.mock_open(read_data=sample_invalid_python_file_content), ): try: parse_python_test(file_path) except PythonParserException as e: - assert ( - "/test/file.py must have a class name file" == str(e) - ) + assert "/test/file.py must have a class name file" == str(e) def test_python_file_parser() -> None: file_path = Path("/test/TC_Sample.py")
/home/runner/work/certification-tool-backend/certification-tool-backend/test_collections/sdk_tests/support/python_testing/models/__init__.py#L12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from .test_case import PythonTestCase + # from .test_suite import PythonTestSuite, SuiteType
/home/runner/work/certification-tool-backend/certification-tool-backend/test_collections/sdk_tests/support/python_testing/models/test_suite.py#L72
}, ) class ChipToolPythonTestSuite(PythonTestSuite): - async def setup(self) -> None: """Due top multi inheritance, we need to call setup on both super classes.""" await PythonTestSuite.setup(self)
test_collections/sdk_tests/support/python_testing/models/python_testing_hooks_proxy.py#L33
Name "is_finished" already defined on line 23 [no-redef]
test_collections/sdk_tests/support/python_testing/models/test_case.py#L101
"PythonTestCase" has no attribute "__runned" [attr-defined]
Run linters
Process completed with exit code 1.
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/