d4b53bfb08
Docker / build (push) Has been cancelled
Test / pytest (ubuntu-latest, 3.12) (push) Has been cancelled
Test / pytest (windows-latest, 3.11) (push) Has been cancelled
Test / pytest (windows-latest, 3.12) (push) Has been cancelled
Lint / ruff (push) Has been cancelled
Test / pytest (ubuntu-latest, 3.11) (push) Has been cancelled
Build / build (push) Has been cancelled
13 lines
505 B
Python
13 lines
505 B
Python
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 |