Tests: no CaMa measure is served by clinical stage or tumour size; the stratifiers view is built in its own test

This commit is contained in:
rockdrigo
2026-11-20 23:28:33 -06:00
parent 8130f86f3a
commit d1e06798c9
4 changed files with 25 additions and 34 deletions
+4 -4
View File
@@ -84,11 +84,11 @@ def test_las_definiciones_son_las_del_manifiesto_de_dbt(base):
measure the manifest declares stops reaching `cat_estrato` and `cat_measure`, or a second run deletes rows."""
resumen = base.run("definitions")["definitions"]
# CaCu: three strata and its seven measures; CaMa: the age group of its invasive cancers, the BI-RADS stratum of
# the histopathological result and its thirteen measures; TEA: the age group and its ten measures.
assert resumen["definitions"] == {"cacu": 10, "cama": 15, "tea": 11}[base.proyecto]
# CaCu: three strata and its seven measures; CaMa: the BI-RADS stratum of the histopathological result and its
# eleven measures; TEA: the age group and its ten measures.
assert resumen["definitions"] == {"cacu": 10, "cama": 12, "tea": 11}[base.proyecto]
# Y el catálogo de publicación de §6f (T-19b): un `cat_measure` por measure, sincronizado.
assert base.dominio.cat_measure_repository.count() == {"cacu": 7, "cama": 13, "tea": 10}[base.proyecto]
assert base.dominio.cat_measure_repository.count() == {"cacu": 7, "cama": 11, "tea": 10}[base.proyecto]
assert base.run("definitions")["definitions"]["borradas"] == 0