import inspect from EvoScientist.web_checkpointer import _web_saver_type def test_web_saver_declares_real_run_cleanup_without_deleting_shared_blobs(): saver_type = _web_saver_type() source = inspect.getsource(saver_type.adelete_for_runs) assert saver_type.adelete_for_runs.__qualname__.startswith("_web_saver_type") assert "checkpoint_writes" in source assert "DELETE FROM checkpoints" in source assert "checkpoint_blobs" not in source assert "metadata->>'run_id'" in source