q100: the guard's test-file class is three shapes, not one -- TEST_NAME now reads _test_*.py and *_test.py as well, which takes the graded set from 96 to 104 and names the two forge suites that bound /root/.hermes/wizard-outputs/forge at _test_roundtrip.py:13 and _test_roundtrip_refactored.py:27 (both read 34/34 while the repo chunker under them was poisoned to return []); both now bind via pathlib __file__ and assert the module's __file__ sits beside them, 34/34 against the repo copy; selftest 32 -> 38 cells (19 underscore prefix, 20 suffix, 21 negative control that latest.py/attestation.py/protest.py stay advisory) and the baseline re-pinned 32 -> 38, regenerated with --write-baseline and diff-empty
This commit is contained in:
1 parent
41f4b370bd
commit
ed14f0ebc8
4 files changed
+85
-11
No files matched your search
@@ -10,9 +10,16 @@ Covers:
|
||||
import sys
|
||||
import random
|
||||
import string
|
||||
sys.path.insert(0, "/root/.hermes/wizard-outputs/forge")
|
||||
import pathlib
|
||||
HERE = pathlib.Path(__file__).resolve().parent
|
||||
sys.path.insert(0, str(HERE))
|
||||
import chunker
|
||||
|
||||
# Q100: grade the file this suite sits beside, not a copy on the host that
|
||||
# happened to write it. Without this line the suite read 34/34 while the repo
|
||||
# copy under it was poisoned to `return []`.
|
||||
assert pathlib.Path(chunker.__file__).resolve().parent == HERE, chunker.__file__
|
||||
|
||||
PASS = 0
|
||||
FAIL = 0
|
||||
|
||||
|
||||
@@ -23,11 +23,17 @@ from __future__ import annotations
|
||||
|
||||
import random
|
||||
import sys
|
||||
import pathlib
|
||||
|
||||
sys.path.insert(0, "/root/.hermes/wizard-outputs/forge")
|
||||
HERE = pathlib.Path(__file__).resolve().parent
|
||||
sys.path.insert(0, str(HERE))
|
||||
|
||||
import chunker
|
||||
|
||||
# Q100: this suite grades the `chunker.py` committed beside it, not the host
|
||||
# copy at /root/.hermes/wizard-outputs/forge that the first line bound.
|
||||
assert pathlib.Path(chunker.__file__).resolve().parent == HERE, chunker.__file__
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------- #
|
||||
# diagnostics
|
||||
|
||||
Reference in new issue
Block a user