@@ -54,7 +54,7 @@ def _assertInExceptionAndLog(self, xml: str, strings: Union[Iterable[str], str],
5454 read_aas_xml_file (bytes_io , failsafe = False )
5555 cause = _root_cause (err_ctx .exception )
5656 for s in strings :
57- self .assertIn (s , log_ctx .output [0 ]) # type: ignore
57+ self .assertIn (s , log_ctx .output [0 ])
5858 self .assertIn (s , str (cause ))
5959
6060 def test_malformed_xml (self ) -> None :
@@ -177,7 +177,7 @@ def test_reference_kind_mismatch(self) -> None:
177177 with self .assertLogs (logging .getLogger (), level = logging .WARNING ) as context :
178178 read_aas_xml_file (io .BytesIO (xml .encode ("utf-8" )), failsafe = False )
179179 for s in ("GLOBAL_REFERENCE" , "IRI=http://acplt.org/test_ref" , "Asset" ):
180- self .assertIn (s , context .output [0 ]) # type: ignore
180+ self .assertIn (s , context .output [0 ])
181181
182182 def test_invalid_submodel_element (self ) -> None :
183183 # TODO: simplify this should our suggestion regarding the XML schema get accepted
@@ -265,7 +265,7 @@ def test_operation_variable_too_many_submodel_elements(self) -> None:
265265 """ )
266266 with self .assertLogs (logging .getLogger (), level = logging .WARNING ) as context :
267267 read_aas_xml_file (io .BytesIO (xml .encode ("utf-8" )), failsafe = False )
268- self .assertIn ("aas:value" , context .output [0 ]) # type: ignore
268+ self .assertIn ("aas:value" , context .output [0 ])
269269
270270 def test_duplicate_identifier (self ) -> None :
271271 xml = _xml_wrap ("""
@@ -319,7 +319,7 @@ def get_clean_store() -> model.DictObjectStore:
319319 with self .assertLogs (logging .getLogger (), level = logging .INFO ) as log_ctx :
320320 identifiers = read_aas_xml_file_into (object_store , bytes_io , replace_existing = False , ignore_existing = True )
321321 self .assertEqual (len (identifiers ), 0 )
322- self .assertIn ("already exists in the object store" , log_ctx .output [0 ]) # type: ignore
322+ self .assertIn ("already exists in the object store" , log_ctx .output [0 ])
323323 submodel = object_store .pop ()
324324 self .assertIsInstance (submodel , model .Submodel )
325325 self .assertEqual (submodel .id_short , "test123" )
0 commit comments