Skip to content

Commit e1feb1d

Browse files
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 hex
1 parent 18a798e commit e1feb1d

4 files changed

Lines changed: 1581 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Part of OpenSPP. See LICENSE file for full copyright and licensing details.
22

33
from . import test_cel_vocabulary
4+
from . import test_init_and_coverage
45
from . import test_vocabulary_cache
56
from . import test_vocabulary_in_exists

0 commit comments

Comments
 (0)