from pathlib import Path

from gal_fingerprint_i.config import active_roots, runtime_storage_probe


def test_runtime_storage_atomic_probe_passes():
    report = runtime_storage_probe()
    assert report["runtime_write_test_pass"] is True
    assert Path(report["runtime_root"]).is_dir()


def test_active_roots_exposes_storage_mode_and_canonical_root():
    roots = active_roots()
    assert roots["runtime_storage_mode"]
    assert roots["canonical_run_root"]
