From 2db802b85db2f32182f044b3c8037513d2f98882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20M=C3=B6ller?= Date: Tue, 21 Nov 2023 20:08:54 +0100 Subject: [PATCH] test.adapter.xml: remove 'type: ignore' comments These comments were mistakenly re-added in a previous merge of main into improve/V30. --- test/adapter/xml/test_xml_deserialization.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/adapter/xml/test_xml_deserialization.py b/test/adapter/xml/test_xml_deserialization.py index 9310e4462..4ff06aa60 100644 --- a/test/adapter/xml/test_xml_deserialization.py +++ b/test/adapter/xml/test_xml_deserialization.py @@ -51,7 +51,7 @@ def _assertInExceptionAndLog(self, xml: str, strings: Union[Iterable[str], str], read_aas_xml_file(bytes_io, failsafe=False) cause = _root_cause(err_ctx.exception) for s in strings: - self.assertIn(s, log_ctx.output[0]) # type: ignore + self.assertIn(s, log_ctx.output[0]) self.assertIn(s, str(cause)) def test_malformed_xml(self) -> None: @@ -173,7 +173,7 @@ def test_reference_kind_mismatch(self) -> None: with self.assertLogs(logging.getLogger(), level=logging.WARNING) as context: read_aas_xml_file(io.BytesIO(xml.encode("utf-8")), failsafe=False) for s in ("SUBMODEL", "http://acplt.org/test_ref", "AssetAdministrationShell"): - self.assertIn(s, context.output[0]) # type: ignore + self.assertIn(s, context.output[0]) def test_invalid_submodel_element(self) -> None: xml = _xml_wrap(""" @@ -255,7 +255,7 @@ def test_operation_variable_too_many_submodel_elements(self) -> None: """) with self.assertLogs(logging.getLogger(), level=logging.WARNING) as context: read_aas_xml_file(io.BytesIO(xml.encode("utf-8")), failsafe=False) - self.assertIn("aas:value", context.output[0]) # type: ignore + self.assertIn("aas:value", context.output[0]) self.assertIn("more than one submodel element", context.output[0]) def test_duplicate_identifier(self) -> None: