data_transfer / bbflow_base /tests /test_final_condition_sensitivity_script.py
hanghang214's picture
Add files using upload-large-folder tool
24599ef verified
Raw History Blame Contribute Delete
461 Bytes
from pathlib import Path
def test_final_condition_sensitivity_script_exposes_counterfactual_modes():
script = Path(__file__).resolve().parents[1] / "scripts" / "diagnose_final_condition_sensitivity.py"
assert script.exists(), "missing final-condition sensitivity diagnostic"
text = script.read_text()
assert "directional_all_zero" in text
assert "node_cond_zero_all_paths" in text
assert "node_cond_zero_film_only" in text