aboutcode-org / aboutcode-org/purldb
Add doctest and tests for clearcode coordinate helpers
Aberta
- Linguagem predominante
- HTML
- Estrelas
- 67
- Forks
- 69
- Merge médio
- 8d 8h
- PRs com merge (30d)
- 1
Descrição
While reading `clearcode/cdutils.py`, I noticed that `str2coord()` still has a TODO for adding a doctest.
This helper parses ClearlyDefined coordinates from multiple input formats such as:
- `cd:/...` URLs
- `urn:...` strings
- plain coordinate paths
Proposed changes:
- add doctest examples to `str2coord()`
- add tests covering URL and URN parsing in the existing `clearcode/tests/test_sync.py`
- add a small test for `coord2str()` to verify namespace handling
Files involved:
- `clearcode/cdutils.py`
- `clearcode/tests/test_sync.py`
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.