justinmclean opened a new pull request, #235:
URL: https://github.com/apache/airflow-steward/pull/235

   35 new tests filling the remaining coverage gaps in 
`test_generate_cve_json.py`.
   
   ## Changes
   
   `tests/test_generate_cve_json.py` — new test cases covering:
   
   - `normalise_severity` — known values lowercased, unknown values stripped, 
mixed-case handling
   - `to_html` — HTML escaping of `<`, `>`, `&`; newline conversion (`\n\n` → 
`<br><br>`, `\n` → `<br>`); Windows line-ending normalisation
   - `build_descriptions` — empty input, lang/value/supportingMedia shape, HTML 
escaping in media vs plain text in value field
   - `build_cna_container` — all required keys present; title/org-id/discovery 
wiring; affected/descriptions/metrics/problemTypes/credits/references 
delegation; `advisory_urls` and `product_overrides` forwarding; empty 
severity/cwe produce empty lists; mailing-list URL excluded
   - `emit_json` — returns sorted indented JSON, file write with parent-dir 
creation, trailing newline, return value matches file content, non-ASCII 
preserved


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to