Skip to content

Add python tests model classes #68

Add python tests model classes

Add python tests model classes #68

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

spell-check.yml

on: pull_request_target
spellcheck
11s
spellcheck
Fit to window
Zoom out
Zoom in

Annotations

9 errors
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/python_testing/models/python_testing_hooks_proxy.py#L33
Name "is_finished" already defined on line 23 [no-redef]
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")
test_collections/sdk_tests/support/python_testing/models/test_case.py#L101
"PythonTestCase" has no attribute "__runned" [attr-defined]
/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)