Michael Rabinovich commited on
Commit
007a50e
·
1 Parent(s): 47c86cf

tests: cover the admin gate and promote/demote helpers

Browse files

four unit tests for admin.py: the CADGENBENCH_ADMINS gate (in-set,
out-of-set, logged-out, empty set), promote and demote happy paths,
and idempotent re-promotion. the results.jsonl read and write that
_hub_rmw_results drives are mocked, so the suite makes no hub calls.

1 file changed +120
tests/test_admin.pyAdded+120