mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-28 19:12:19 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from services.memory.skill_lifecycle import automatic_audit_candidates
|
||||
|
||||
|
||||
def test_automatic_review_retries_without_starving_new_skills():
|
||||
now = 20 * 86400
|
||||
rows = [
|
||||
{"name": "builtin", "source": "builtin"},
|
||||
{"name": "bin", "status": "binned"},
|
||||
{"name": "approved", "audit_verdict": "pass"},
|
||||
{"name": "duplicate", "audit_verdict": "skipped"},
|
||||
{"name": "recent", "audit_verdict": "inconclusive", "audited_at": now - 60},
|
||||
{"name": "failed", "audit_verdict": "fail", "audited_at": now - 8 * 86400},
|
||||
{"name": "transient", "audit_verdict": "inconclusive", "audited_at": now - 2 * 86400},
|
||||
{"name": "new"},
|
||||
]
|
||||
assert [s["name"] for s in automatic_audit_candidates(rows, now=now)] == ["new", "failed", "transient"]
|
||||
assert [s["name"] for s in automatic_audit_candidates(rows, limit=1, now=now)] == ["new"]
|
||||
Reference in New Issue
Block a user