"""Tests for this service's downstream catalog (Resource + DOWNSTREAMS).""" from core.hardening.policy import DownstreamPolicy from core.hardening.resources import DOWNSTREAMS, Resource def test_downstreams_covers_every_resource(): """Every Resource has a DownstreamPolicy and vice versa.""" assert set(DOWNSTREAMS) == set(Resource) def test_real_table_imports_without_raising(): """Regression: every DOWNSTREAMS row must satisfy __post_init__.""" assert all(isinstance(p, DownstreamPolicy) for p in DOWNSTREAMS.values())