def test_extract_stat_desc(stat_description):
    extracted_text = QueryExecutioner._extract_main_description(
        stat_description[0])
    assert (extracted_text == stat_description[1]
            ), "extracted text does not match bold part"
 def _description_helper(self, meta_fields) -> Optional[str]:
     return QueryExecutioner._extract_main_description(
         meta_fields[self.name]["description"]
     )