diff --git a/db/data/jrc/euromod_be_baseline_statistics_2025/jrc_euromod_be_baseline_statistics_2025.csv b/db/data/jrc/euromod_be_baseline_statistics_2025/jrc_euromod_be_baseline_statistics_2025.csv deleted file mode 100644 index 5070a04..0000000 --- a/db/data/jrc/euromod_be_baseline_statistics_2025/jrc_euromod_be_baseline_statistics_2025.csv +++ /dev/null @@ -1,19 +0,0 @@ -value_id,period,validation.metric,validation.series,table_id,source_url,value -a3_4_national_income_tax_euromod_2023,2023,national_income_tax,euromod,A3.4,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,77531 -a3_4_national_income_tax_external_2023,2023,national_income_tax,external,A3.4,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,69325 -a3_4_employee_sics_euromod_2023,2023,employee_social_insurance_contributions,euromod,A3.4,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,28861 -a3_4_employee_sics_external_2023,2023,employee_social_insurance_contributions,external,A3.4,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,23715 -a3_6_child_benefits_euromod_2023,2023,child_benefits,euromod,A3.6,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,7454 -a3_6_child_benefits_external_2023,2023,child_benefits,external,A3.6,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,8191 -a3_6_unemployment_benefits_euromod_2023,2023,unemployment_benefits,euromod,A3.6,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,11706 -a3_6_unemployment_benefits_external_2023,2023,unemployment_benefits,external,A3.6,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,6391 -a3_4_national_income_tax_ratio_2023,2023,national_income_tax,ratio,A3.4,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,1.12 -a3_4_employee_sics_ratio_2023,2023,employee_social_insurance_contributions,ratio,A3.4,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,1.22 -a3_6_child_benefits_ratio_2023,2023,child_benefits,ratio,A3.6,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,0.91 -a3_6_unemployment_benefits_ratio_2023,2023,unemployment_benefits,ratio,A3.6,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,1.83 -a3_7_gini_euromod_2022,2022,gini,euromod,A3.7,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,22.28 -a3_7_gini_external_2022,2022,gini,external,A3.7,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,24.20 -a3_8_poverty_60_total_euromod_2022,2022,at_risk_poverty_60_median_total,euromod,A3.8,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,11.23 -a3_8_poverty_60_total_external_2022,2022,at_risk_poverty_60_median_total,external,A3.8,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,12.30 -a3_7_gini_ratio_2022,2022,gini,ratio,A3.7,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,0.92 -a3_8_poverty_60_total_ratio_2022,2022,at_risk_poverty_60_median_total,ratio,A3.8,https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf,0.91 diff --git a/db/data/jrc/euromod_be_baseline_statistics_2025/manifest.yaml b/db/data/jrc/euromod_be_baseline_statistics_2025/manifest.yaml deleted file mode 100644 index 70682cf..0000000 --- a/db/data/jrc/euromod_be_baseline_statistics_2025/manifest.yaml +++ /dev/null @@ -1,22 +0,0 @@ -source_id: jrc-euromod-be-baseline-statistics-2025 -source_name: JRC EUROMOD-BE baseline statistics 2025 -publisher: European Commission Joint Research Centre -source_page: https://euromod-web.jrc.ec.europa.eu/resources/country-reports -files: - 2025: - filename: jrc_euromod_be_baseline_statistics_2025.csv - source_url: https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf - source_table: EUROMOD Country Report Belgium 2025 validation tables - sha256: 2ed1f8a677799fefe7cc2f092b4f30221940a2a2fc9deecbf29e7a5f7d71b69f - size_bytes: 3024 - storage: - r2: - provider: r2 - bucket: ledger-raw - key: raw/belgium/jrc-euromod-be-baseline-statistics-2025/2025/2ed1f8a677799fefe7cc2f092b4f30221940a2a2fc9deecbf29e7a5f7d71b69f/jrc_euromod_be_baseline_statistics_2025.csv - uri: r2://ledger-raw/raw/belgium/jrc-euromod-be-baseline-statistics-2025/2025/2ed1f8a677799fefe7cc2f092b4f30221940a2a2fc9deecbf29e7a5f7d71b69f/jrc_euromod_be_baseline_statistics_2025.csv - source_urls: - - https://euromod-web.jrc.ec.europa.eu/resources/country-reports - - https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf - notes: Curated comparator rows from Annex 3 validation tables in the 2025 EUROMOD Country - Report for Belgium. Each row carries the report PDF URL. diff --git a/ledger/source_package.py b/ledger/source_package.py index d556e4a..14baeee 100644 --- a/ledger/source_package.py +++ b/ledger/source_package.py @@ -89,9 +89,6 @@ "nbb-national-accounts-household-disposable-income-2024": Path( "nbb/national_accounts_household_disposable_income_2024" ), - "jrc-euromod-be-baseline-statistics-2025": Path( - "jrc/euromod_be_baseline_statistics_2025" - ), "cbo-revenue-projections-income-by-source-2026-02": Path( "cbo/revenue_projections_income_by_source_2026_02" ), diff --git a/packages/jrc/euromod_be_baseline_statistics_2025/source_package.yaml b/packages/jrc/euromod_be_baseline_statistics_2025/source_package.yaml deleted file mode 100644 index 3b855e2..0000000 --- a/packages/jrc/euromod_be_baseline_statistics_2025/source_package.yaml +++ /dev/null @@ -1,477 +0,0 @@ -schema_version: ledger.source_package.v1 -package_id: jrc-euromod-be-baseline-statistics-2025 -label: JRC EUROMOD-BE 2025 baseline validation comparator statistics -artifact: - source_name: jrc_euromod_be - source_table: EUROMOD Country Report Belgium 2025 validation tables - resource_package: db - resource_directory: data/jrc/euromod_be_baseline_statistics_2025 - manifest: manifest.yaml - vintage: euromod_be_country_report_2025 - extracted_at: '2026-07-02' - extraction_method: curated CSV extract from JRC EUROMOD Country Report Belgium Annex 3 validation - tables - parser: delimited_text_full_rows - artifact_year: 2025 - sheet_name: jrc_euromod_be_baseline_statistics_2025 -record_sets: -- record_set_id: jrc.euromod_be.cy2023.macrovalidation.amounts - record_set_spec_id: jrc.euromod_be.macrovalidation.amounts.v1 - source_record_id_prefix: jrc.euromod_be.cy2023.macrovalidation.amounts - sheet_name: jrc_euromod_be_baseline_statistics_2025 - period_type: calendar_year - period: 2023 - geography_id: BE - geography_level: country - geography_name: Belgium - geography_vintage: current - entity: government - entity_role: validation_comparator - domain: euromod_be_macrovalidation - groupby_dimension: validation.metric_series - rows: - - value_id: a3_4_national_income_tax_euromod_2023 - label: a3 4 national income tax euromod 2023 - ordinal: 0 - row_number: 2 - expected_row_header_column: A - expected_row_header: a3_4_national_income_tax_euromod_2023 - filters: - validation.metric: national_income_tax - validation.series: euromod - constraints: - - variable: validation.metric - operator: == - value: national_income_tax - label: Validation metric - - variable: validation.series - operator: == - value: euromod - label: Validation series - - value_id: a3_4_national_income_tax_external_2023 - label: a3 4 national income tax external 2023 - ordinal: 1 - row_number: 3 - expected_row_header_column: A - expected_row_header: a3_4_national_income_tax_external_2023 - filters: - validation.metric: national_income_tax - validation.series: external - constraints: - - variable: validation.metric - operator: == - value: national_income_tax - label: Validation metric - - variable: validation.series - operator: == - value: external - label: Validation series - - value_id: a3_4_employee_sics_euromod_2023 - label: a3 4 employee sics euromod 2023 - ordinal: 2 - row_number: 4 - expected_row_header_column: A - expected_row_header: a3_4_employee_sics_euromod_2023 - filters: - validation.metric: employee_social_insurance_contributions - validation.series: euromod - constraints: - - variable: validation.metric - operator: == - value: employee_social_insurance_contributions - label: Validation metric - - variable: validation.series - operator: == - value: euromod - label: Validation series - - value_id: a3_4_employee_sics_external_2023 - label: a3 4 employee sics external 2023 - ordinal: 3 - row_number: 5 - expected_row_header_column: A - expected_row_header: a3_4_employee_sics_external_2023 - filters: - validation.metric: employee_social_insurance_contributions - validation.series: external - constraints: - - variable: validation.metric - operator: == - value: employee_social_insurance_contributions - label: Validation metric - - variable: validation.series - operator: == - value: external - label: Validation series - - value_id: a3_6_child_benefits_euromod_2023 - label: a3 6 child benefits euromod 2023 - ordinal: 4 - row_number: 6 - expected_row_header_column: A - expected_row_header: a3_6_child_benefits_euromod_2023 - filters: - validation.metric: child_benefits - validation.series: euromod - constraints: - - variable: validation.metric - operator: == - value: child_benefits - label: Validation metric - - variable: validation.series - operator: == - value: euromod - label: Validation series - - value_id: a3_6_child_benefits_external_2023 - label: a3 6 child benefits external 2023 - ordinal: 5 - row_number: 7 - expected_row_header_column: A - expected_row_header: a3_6_child_benefits_external_2023 - filters: - validation.metric: child_benefits - validation.series: external - constraints: - - variable: validation.metric - operator: == - value: child_benefits - label: Validation metric - - variable: validation.series - operator: == - value: external - label: Validation series - - value_id: a3_6_unemployment_benefits_euromod_2023 - label: a3 6 unemployment benefits euromod 2023 - ordinal: 6 - row_number: 8 - expected_row_header_column: A - expected_row_header: a3_6_unemployment_benefits_euromod_2023 - filters: - validation.metric: unemployment_benefits - validation.series: euromod - constraints: - - variable: validation.metric - operator: == - value: unemployment_benefits - label: Validation metric - - variable: validation.series - operator: == - value: euromod - label: Validation series - - value_id: a3_6_unemployment_benefits_external_2023 - label: a3 6 unemployment benefits external 2023 - ordinal: 7 - row_number: 9 - expected_row_header_column: A - expected_row_header: a3_6_unemployment_benefits_external_2023 - filters: - validation.metric: unemployment_benefits - validation.series: external - constraints: - - variable: validation.metric - operator: == - value: unemployment_benefits - label: Validation metric - - variable: validation.series - operator: == - value: external - label: Validation series - measures: - - measure_id: value - label: Validation table value - ordinal: 0 - column: G - source_column_id: value - expected_column_header_row: 1 - expected_column_header: value - concept: euromod_be.macrovalidation_amount - source_concept: jrc.euromod_be.validation_table_value - concept_relation: source_label - concept_authority: jrc - concept_evidence_url: https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf - concept_evidence_notes: JRC EUROMOD-BE country report Annex 3 publishes validation table - EUROMOD, external-statistic, and ratio values. - unit: eur - aggregation: sum - value_scale: 1000000 - expected_cell_type: number -- record_set_id: jrc.euromod_be.cy2023.macrovalidation.ratios - record_set_spec_id: jrc.euromod_be.macrovalidation.ratios.v1 - source_record_id_prefix: jrc.euromod_be.cy2023.macrovalidation.ratios - sheet_name: jrc_euromod_be_baseline_statistics_2025 - period_type: calendar_year - period: 2023 - geography_id: BE - geography_level: country - geography_name: Belgium - geography_vintage: current - entity: government - entity_role: validation_comparator - domain: euromod_be_macrovalidation - groupby_dimension: validation.metric_series - rows: - - value_id: a3_4_national_income_tax_ratio_2023 - label: a3 4 national income tax ratio 2023 - ordinal: 0 - row_number: 10 - expected_row_header_column: A - expected_row_header: a3_4_national_income_tax_ratio_2023 - filters: - validation.metric: national_income_tax - validation.series: ratio - constraints: - - variable: validation.metric - operator: == - value: national_income_tax - label: Validation metric - - variable: validation.series - operator: == - value: ratio - label: Validation series - - value_id: a3_4_employee_sics_ratio_2023 - label: a3 4 employee sics ratio 2023 - ordinal: 1 - row_number: 11 - expected_row_header_column: A - expected_row_header: a3_4_employee_sics_ratio_2023 - filters: - validation.metric: employee_social_insurance_contributions - validation.series: ratio - constraints: - - variable: validation.metric - operator: == - value: employee_social_insurance_contributions - label: Validation metric - - variable: validation.series - operator: == - value: ratio - label: Validation series - - value_id: a3_6_child_benefits_ratio_2023 - label: a3 6 child benefits ratio 2023 - ordinal: 2 - row_number: 12 - expected_row_header_column: A - expected_row_header: a3_6_child_benefits_ratio_2023 - filters: - validation.metric: child_benefits - validation.series: ratio - constraints: - - variable: validation.metric - operator: == - value: child_benefits - label: Validation metric - - variable: validation.series - operator: == - value: ratio - label: Validation series - - value_id: a3_6_unemployment_benefits_ratio_2023 - label: a3 6 unemployment benefits ratio 2023 - ordinal: 3 - row_number: 13 - expected_row_header_column: A - expected_row_header: a3_6_unemployment_benefits_ratio_2023 - filters: - validation.metric: unemployment_benefits - validation.series: ratio - constraints: - - variable: validation.metric - operator: == - value: unemployment_benefits - label: Validation metric - - variable: validation.series - operator: == - value: ratio - label: Validation series - measures: - - measure_id: value - label: Validation table value - ordinal: 0 - column: G - source_column_id: value - expected_column_header_row: 1 - expected_column_header: value - concept: euromod_be.macrovalidation_ratio - source_concept: jrc.euromod_be.validation_table_value - concept_relation: source_label - concept_authority: jrc - concept_evidence_url: https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf - concept_evidence_notes: JRC EUROMOD-BE country report Annex 3 publishes validation table - EUROMOD, external-statistic, and ratio values. - unit: ratio - aggregation: sum - value_scale: 1 - expected_cell_type: number -- record_set_id: jrc.euromod_be.cy2022.distribution.percent_values - record_set_spec_id: jrc.euromod_be.distribution.percent_values.v1 - source_record_id_prefix: jrc.euromod_be.cy2022.distribution.percent_values - sheet_name: jrc_euromod_be_baseline_statistics_2025 - period_type: calendar_year - period: 2022 - geography_id: BE - geography_level: country - geography_name: Belgium - geography_vintage: current - entity: government - entity_role: validation_comparator - domain: euromod_be_macrovalidation - groupby_dimension: validation.metric_series - rows: - - value_id: a3_7_gini_euromod_2022 - label: a3 7 gini euromod 2022 - ordinal: 0 - row_number: 14 - expected_row_header_column: A - expected_row_header: a3_7_gini_euromod_2022 - filters: - validation.metric: gini - validation.series: euromod - constraints: - - variable: validation.metric - operator: == - value: gini - label: Validation metric - - variable: validation.series - operator: == - value: euromod - label: Validation series - - value_id: a3_7_gini_external_2022 - label: a3 7 gini external 2022 - ordinal: 1 - row_number: 15 - expected_row_header_column: A - expected_row_header: a3_7_gini_external_2022 - filters: - validation.metric: gini - validation.series: external - constraints: - - variable: validation.metric - operator: == - value: gini - label: Validation metric - - variable: validation.series - operator: == - value: external - label: Validation series - - value_id: a3_8_poverty_60_total_euromod_2022 - label: a3 8 poverty 60 total euromod 2022 - ordinal: 2 - row_number: 16 - expected_row_header_column: A - expected_row_header: a3_8_poverty_60_total_euromod_2022 - filters: - validation.metric: at_risk_poverty_60_median_total - validation.series: euromod - constraints: - - variable: validation.metric - operator: == - value: at_risk_poverty_60_median_total - label: Validation metric - - variable: validation.series - operator: == - value: euromod - label: Validation series - - value_id: a3_8_poverty_60_total_external_2022 - label: a3 8 poverty 60 total external 2022 - ordinal: 3 - row_number: 17 - expected_row_header_column: A - expected_row_header: a3_8_poverty_60_total_external_2022 - filters: - validation.metric: at_risk_poverty_60_median_total - validation.series: external - constraints: - - variable: validation.metric - operator: == - value: at_risk_poverty_60_median_total - label: Validation metric - - variable: validation.series - operator: == - value: external - label: Validation series - measures: - - measure_id: value - label: Validation table value - ordinal: 0 - column: G - source_column_id: value - expected_column_header_row: 1 - expected_column_header: value - concept: euromod_be.distribution_validation_percent - source_concept: jrc.euromod_be.validation_table_value - concept_relation: source_label - concept_authority: jrc - concept_evidence_url: https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf - concept_evidence_notes: JRC EUROMOD-BE country report Annex 3 publishes validation table - EUROMOD, external-statistic, and ratio values. - unit: percent - aggregation: sum - value_scale: 1 - expected_cell_type: number -- record_set_id: jrc.euromod_be.cy2022.distribution.ratios - record_set_spec_id: jrc.euromod_be.distribution.ratios.v1 - source_record_id_prefix: jrc.euromod_be.cy2022.distribution.ratios - sheet_name: jrc_euromod_be_baseline_statistics_2025 - period_type: calendar_year - period: 2022 - geography_id: BE - geography_level: country - geography_name: Belgium - geography_vintage: current - entity: government - entity_role: validation_comparator - domain: euromod_be_macrovalidation - groupby_dimension: validation.metric_series - rows: - - value_id: a3_7_gini_ratio_2022 - label: a3 7 gini ratio 2022 - ordinal: 0 - row_number: 18 - expected_row_header_column: A - expected_row_header: a3_7_gini_ratio_2022 - filters: - validation.metric: gini - validation.series: ratio - constraints: - - variable: validation.metric - operator: == - value: gini - label: Validation metric - - variable: validation.series - operator: == - value: ratio - label: Validation series - - value_id: a3_8_poverty_60_total_ratio_2022 - label: a3 8 poverty 60 total ratio 2022 - ordinal: 1 - row_number: 19 - expected_row_header_column: A - expected_row_header: a3_8_poverty_60_total_ratio_2022 - filters: - validation.metric: at_risk_poverty_60_median_total - validation.series: ratio - constraints: - - variable: validation.metric - operator: == - value: at_risk_poverty_60_median_total - label: Validation metric - - variable: validation.series - operator: == - value: ratio - label: Validation series - measures: - - measure_id: value - label: Validation table value - ordinal: 0 - column: G - source_column_id: value - expected_column_header_row: 1 - expected_column_header: value - concept: euromod_be.distribution_validation_ratio - source_concept: jrc.euromod_be.validation_table_value - concept_relation: source_label - concept_authority: jrc - concept_evidence_url: https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf - concept_evidence_notes: JRC EUROMOD-BE country report Annex 3 publishes validation table - EUROMOD, external-statistic, and ratio values. - unit: ratio - aggregation: sum - value_scale: 1 - expected_cell_type: number diff --git a/tests/test_belgium_targets.py b/tests/test_belgium_targets.py index e470f83..f40b7b0 100644 --- a/tests/test_belgium_targets.py +++ b/tests/test_belgium_targets.py @@ -62,7 +62,6 @@ 1, ), ) -EUROMOD_BE_COMPARATOR_ALIAS = "jrc-euromod-be-baseline-statistics-2025" @lru_cache @@ -77,7 +76,6 @@ def _csv_rows(path: Path) -> list[dict[str, str]]: def test_belgium_target_aliases_are_registered(): aliases = {alias for alias, *_rest in BELGIUM_TARGET_STREAMS} - aliases.add(EUROMOD_BE_COMPARATOR_ALIAS) assert aliases <= set(SOURCE_PACKAGE_ALIASES) @@ -192,25 +190,3 @@ def test_belgium_nis_2025_crosswalk_round_trips_merged_communes(): assert fiscal_by_geo["82039"]["geography_name"] == "Bastogne" assert merged_sources_by_target["46030"] == {"11056", "46003", "46013"} assert fiscal_by_geo["46030"]["source_nis_codes"] == "11056;46003;46013" - - -def test_belgium_euromod_comparator_has_source_urls_per_row(): - comparator_rows = _csv_rows( - REPO_ROOT - / "db" - / "data" - / "jrc" - / "euromod_be_baseline_statistics_2025" - / "jrc_euromod_be_baseline_statistics_2025.csv" - ) - facts = _facts(EUROMOD_BE_COMPARATOR_ALIAS, 2025) - - assert len(comparator_rows) == 18 - assert len(facts) == 18 - assert {row["source_url"] for row in comparator_rows} == { - "https://euromod-web.jrc.ec.europa.eu/sites/default/files/2025-02/Y15_CR_BE_final.pdf" - } - assert {fact.source.source_name for fact in facts} == {"jrc_euromod_be"} - assert {fact.geography.id for fact in facts} == {"BE"} - assert {fact.measure.unit for fact in facts} == {"eur", "percent", "ratio"} - assert validate_facts(facts).valid diff --git a/tests/test_ledger_bundle.py b/tests/test_ledger_bundle.py index 6aca7ba..69a4ffb 100644 --- a/tests/test_ledger_bundle.py +++ b/tests/test_ledger_bundle.py @@ -27,19 +27,19 @@ def test_build_bundle_writes_merged_consumer_contract(tmp_path): "aggregate_duplicate_key_count": 0, "entity_count": 8, "error_count": 0, - "fact_count": 38939, + "fact_count": 38921, "geography_count": 1053, - "period_count": 13, + "period_count": 12, "semantic_duplicate_key_count": 12, "skipped_source_count": 9, - "source_count": 25, - "source_package_count": 54, + "source_count": 24, + "source_package_count": 53, "warning_count": 1, } - assert len(rows) == 38939 + assert len(rows) == 38921 assert rows[0]["aggregate_fact_key"].startswith("ledger.aggregate_fact.v2:") assert rows[0]["semantic_fact_key"].startswith("ledger.semantic_fact.v2:") - assert source_packages["source_package_count"] == 54 + assert source_packages["source_package_count"] == 53 assert source_packages["skipped_source_count"] == 9 assert sorted(item["source"] for item in source_packages["skipped_sources"]) == [ "census-acs-s0101-congressional-district-age-2024", @@ -52,7 +52,7 @@ def test_build_bundle_writes_merged_consumer_contract(tmp_path): "cms-aca-oep-state-level-2025", "jct-tax-expenditures-2024", ] - assert coverage["fact_count"] == 38939 + assert coverage["fact_count"] == 38921 assert coverage["counts"]["by_source"] == { "bea": 445, "cbo": 7, @@ -68,7 +68,6 @@ def test_build_bundle_writes_merged_consumer_contract(tmp_path): "hhs_acf_tanf": 110, "hmrc": 193, "irs_soi": 33535, - "jrc_euromod_be": 18, "kff": 52, "nbb_national_accounts": 1, "ons": 1246, @@ -81,7 +80,7 @@ def test_build_bundle_writes_merged_consumer_contract(tmp_path): "usda_snap": 216, } table_counts = coverage["counts"]["by_source_table"] - assert len(table_counts) == 49 + assert len(table_counts) == 48 assert table_counts["irs_soi:Congressional District Data 2022"] == 26880 assert table_counts["irs_soi:Publication 1304 Table 1.1"] == 80 assert ( @@ -186,16 +185,9 @@ def test_build_bundle_writes_merged_consumer_contract(tmp_path): ] == 1 ) - assert ( - table_counts[ - "jrc_euromod_be:EUROMOD Country Report Belgium 2025 validation tables" - ] - == 18 - ) assert coverage["counts"]["by_period"] == { "calendar_year:2018": 1, - "calendar_year:2022": 6, - "calendar_year:2023": 1011, + "calendar_year:2023": 999, "calendar_year:2024": 1467, "calendar_year:2025": 1246, "calendar_year:2026": 18, @@ -207,7 +199,7 @@ def test_build_bundle_writes_merged_consumer_contract(tmp_path): "tax_year:2023": 28187, "tax_year:2024": 34, } - assert coverage["counts"]["by_geography"]["country:BE"] == 22 + assert coverage["counts"]["by_geography"]["country:BE"] == 4 assert coverage["counts"]["by_geography"]["nuts1:BE1"] == 6 assert coverage["counts"]["by_geography"]["nuts1:BE2"] == 6 assert coverage["counts"]["by_geography"]["nuts1:BE3"] == 6 @@ -222,7 +214,7 @@ def test_build_bundle_writes_merged_consumer_contract(tmp_path): assert coverage["counts"]["by_entity"] == { "family": 107, "firm": 1439, - "government": 120, + "government": 102, "household": 57, "institutional_sector": 1, "pension_plan": 2,