fix(scan): strip salutations from the owner name and add pytest job (closes #16) #26
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/owner-salutation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
strip_salutation()inwebsite_scan.py: removes leading Herr/Herrn/Frau/Dr./Prof./Dipl.-Ing./Mag./Ing. (case-insensitive, whole words only, so "Herrmann" stays). Used byextract_owner_regexandextract_owner_via_ner, so both paths behave the same. A bare salutation yields an empty name.tests/test_website_scan.py(16 cases, no Frappe, no network).pyproject.tomlsetspythonpathandtestpathsfor pytest.testsin.forgejo/workflows/ci.yml(pinned pytest and requests).Test
pytest: 16 passed locally,ruff checkandruff format --checkclean.🤖 Generated with Claude Code