Skip to content

Sprint 1: Test safety net for source code work#9

Merged
Polichinel merged 4 commits into
developmentfrom
feature/sprint1-test-safety-net
Jun 3, 2026
Merged

Sprint 1: Test safety net for source code work#9
Polichinel merged 4 commits into
developmentfrom
feature/sprint1-test-safety-net

Conversation

@Polichinel
Copy link
Copy Markdown
Collaborator

Summary

Total: 88 passing tests (was 73). Lint clean. No source code modified.

Test plan

  • pytest tests/test_mapping.py tests/test_validation.py tests/test_integration.py tests/test_regression.py — 88 passed
  • ruff check . — All checks passed
  • Integration test verifies mapper output matches manager's filter_cols (the ADR-011 acceptance test)
  • Regression tests fail if make_valid, warning fix, or zero-area guards are reverted

🤖 Generated with Claude Code

Polichinel and others added 4 commits June 2, 2026 15:59
Falsification campaign (15 claims, 4 layers):
- Layer 1 (understanding): 1 survived, 2 falsified (CIC-code drift)
- Layer 2 (correctness): 4 survived (algorithm verified)
- Layer 3 (test sufficiency): 2 contested, 3 falsified (regression/integration/E2E gaps)
- Layer 4 (drift detection): 1 survived, 2 contested

11 falsification test stub files document every gap found.
Risk register updated: C-12 Tier 1→2, Cluster F (CIC drift) added,
Clusters A/C/D tagged contingent on ADR-011.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 tests verifying that enrich_dataframe_with_pg_info output matches
the manager's filter_cols: all 9 columns present, no nulls for valid
GIDs, correct types (numeric admin codes, float coordinates, valid ISO
codes), row count preserved, and enriched output passes validation.

Closes #4

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
test_enrichment_adds_expected_columns now checks all 9 metadata columns
(was 5). Added: pg_xcoord, pg_ycoord, admin1_gaul0_code, admin1_gaul0_name.
A rename or removal of any column now fails a test.

Closes #5

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ea guard

8 regression tests protecting fixes applied during audit session:
- make_valid(): 3 tests (invalid country/admin geometry fixed, fixture guard)
- Warning suppression: 2 tests (no global ignore, UserWarning visible)
- Zero-area guard: 3 tests (country/admin1/admin2 return None with WARNING)

Removing any fix causes at least one test to fail.

Closes #6
Closes #7
Closes #8

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Polichinel Polichinel merged commit 2418008 into development Jun 3, 2026
3 of 4 checks passed
@Polichinel Polichinel deleted the feature/sprint1-test-safety-net branch June 3, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant