(xml_response)
| 48 | |
| 49 | |
| 50 | def parse_vulnerabilities(xml_response) -> Iterable[AdvisoryData]: |
| 51 | root = DET.fromstring(xml_response) |
| 52 | for xml_issue in root: |
| 53 | if xml_issue.tag == "issue": |
| 54 | advisory = to_advisory_data(xml_issue) |
| 55 | if advisory: |
| 56 | yield advisory |
| 57 | |
| 58 | |
| 59 | def to_advisory_data(xml_issue) -> AdvisoryData: |
no test coverage detected