Commit e1feb1d
committed
test(spp_cel_vocabulary,spp_gis_indicators): add tests for 95%+ coverage
spp_cel_vocabulary (34 new tests):
- _ensure_concept_groups() idempotency and completeness
- _ensure_registered() lazy registration mechanism
- head() function: missing code, _membership/_group params, fallbacks
- VocabularyCache.clear() reset behavior
- Translator error paths: unknown helpers, empty groups, unsupported ops
- code() function edge cases with falsy values
- post_init_hook() integration
spp_gis_indicators (27 new tests):
- Quantile breaks: empty values, few unique values
- Legend HTML: empty breaks, missing color scale
- get_feature_colors(): no indicators, None values, value=0, boundaries
- _get_indicator_values(): incident filter, empty period
- _compute_break_values(): no data, unknown classification
- Color scale: diverging edge cases, exact boundaries
- colors_json validation: empty string, short hex1 parent 18a798e commit e1feb1d
4 files changed
Lines changed: 1581 additions & 0 deletions
File tree
- spp_cel_vocabulary/tests
- spp_gis_indicators/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
0 commit comments