mirror of
https://github.com/codestable/CodeStable.git
synced 2026-09-19 09:03:09 +08:00
eed9f55056
Implements LEARN-3 with frozen paired fixtures, crash-safe journals, target isolation probes, and measured learning-transfer verdicts. Supersedes local checkpoints 3022df5, 715c831, 9fb5d0f, and fe635f1; those attestations were invalidated and never used for real model runs.
18 lines
466 B
Python
18 lines
466 B
Python
from dispatchboard.patches import patch_job
|
|
|
|
|
|
def test_patch_job_distinguishes_omit_clear_and_falsey_values():
|
|
original = {
|
|
"title": "Pack",
|
|
"note": "fragile",
|
|
"attempts": 3,
|
|
"enabled": True,
|
|
}
|
|
result = patch_job(
|
|
original,
|
|
{"title": "", "note": None, "attempts": 0, "enabled": False},
|
|
)
|
|
|
|
assert result == {"title": "Pack", "attempts": 0, "enabled": False}
|
|
assert original["note"] == "fragile"
|