Skip to content

Commit

Permalink
test.adapter.xml: Reintroduce "# type: ignore" tags that got lost in …
Browse files Browse the repository at this point in the history
…merge
  • Loading branch information
s-heppner committed Nov 21, 2023
1 parent e520b71 commit 6d58ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/adapter/xml/test_xml_deserialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
self.assertIn(s, log_ctx.output[0]) # type: ignore
self.assertIn(s, str(cause))

def test_malformed_xml(self) -> None:
Expand Down Expand Up @@ -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])
self.assertIn("aas:value", context.output[0]) # type: ignore
self.assertIn("more than one submodel element", context.output[0])

def test_duplicate_identifier(self) -> None:
Expand Down

0 comments on commit 6d58ca7

Please sign in to comment.