Commit 2b86d8c
SpilloverDiD: replace Conley smoke test with plumbing-verification
Round-8 CI review flagged `test_conley_se_differs_from_hc1` as a test-
coverage gap: the name promises a Conley-specific assertion but the body
only checked finite SE + ATT invariance. A silent fallback to HC1 (e.g.,
if SpilloverDiD ever stopped threading the Conley kwargs through to
`solve_ols`) would have passed.
Replace with:
- `test_conley_kwargs_threaded_to_solve_ols`: patches `solve_ols` at the
import site, captures the kwargs of the stage-2 invocation, and
asserts they include `vcov_type="conley"`, `conley_cutoff_km=200.0`,
`conley_metric="haversine"`, `conley_lag_cutoff=0`, plus
fit-time-derived `conley_coords` / `conley_time` / `conley_unit`
arrays of the right shape. Any silent fallback to HC1 fails this.
- `test_conley_att_invariant_vs_hc1`: extracted from the old test —
vcov choice does not change ATT (residualization + OLS fit are
independent of variance). Now stands as a clean invariant rather than
pretending to verify Conley-specific output.
Also bumps CHANGELOG test count 156 -> 157 and updates the Conley
description to "plumbing (verifies solve_ols is called with vcov_type=
'conley' + Conley kwargs, no silent HC1 fallback)".
All 157 tests pass; black + ruff clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1a71eaf commit 2b86d8c
2 files changed
Lines changed: 67 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
869 | | - | |
870 | | - | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
871 | 879 | | |
872 | 880 | | |
873 | 881 | | |
874 | | - | |
| 882 | + | |
875 | 883 | | |
876 | 884 | | |
877 | | - | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
878 | 889 | | |
879 | | - | |
880 | | - | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
881 | 940 | | |
882 | 941 | | |
883 | 942 | | |
884 | 943 | | |
885 | 944 | | |
886 | | - | |
887 | | - | |
888 | | - | |
| 945 | + | |
889 | 946 | | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | 947 | | |
896 | 948 | | |
897 | 949 | | |
| |||
0 commit comments