Skip to content

Commit 6d58ca7

Browse files
committed
test.adapter.xml: Reintroduce "# type: ignore" tags that got lost in merge
1 parent e520b71 commit 6d58ca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/adapter/xml/test_xml_deserialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _assertInExceptionAndLog(self, xml: str, strings: Union[Iterable[str], str],
5151
read_aas_xml_file(bytes_io, failsafe=False)
5252
cause = _root_cause(err_ctx.exception)
5353
for s in strings:
54-
self.assertIn(s, log_ctx.output[0])
54+
self.assertIn(s, log_ctx.output[0]) # type: ignore
5555
self.assertIn(s, str(cause))
5656

5757
def test_malformed_xml(self) -> None:
@@ -255,7 +255,7 @@ def test_operation_variable_too_many_submodel_elements(self) -> None:
255255
""")
256256
with self.assertLogs(logging.getLogger(), level=logging.WARNING) as context:
257257
read_aas_xml_file(io.BytesIO(xml.encode("utf-8")), failsafe=False)
258-
self.assertIn("aas:value", context.output[0])
258+
self.assertIn("aas:value", context.output[0]) # type: ignore
259259
self.assertIn("more than one submodel element", context.output[0])
260260

261261
def test_duplicate_identifier(self) -> None:

0 commit comments

Comments
 (0)