def test_query_multi_object(self, temp_dir): simbad = Simbad() simbad.cache_location = temp_dir result = simbad.query_objects(['M32', 'M81']) assert len(result) == 2 assert len(result.errors) == 0 result = simbad.query_objects(['M32', 'M81', 'gHer']) # 'gHer' is not a valid Simbad identifier - it should be 'g Her' to # get the star assert len(result) == 2 assert len(result.errors) == 1 # test async s = Simbad() response = s.query_objects_async(['M32', 'M81']) result = s._parse_result(response, SimbadVOTableResult) assert len(result) == 2