Deep-class test also passes with no agent tool in the environment (CI)
ci / test (push) Waiting to run
ci / test (push) Waiting to run
With no harness variable the offered list already is "unknown.txt", and copying
it onto itself raised SameFileError: main's CI run for 3241e97 failed on this.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ee9a856160
commit
50318d1bba
1 file changed
+2
-1
@@ -143,7 +143,8 @@ class ModelsResearch(unittest.TestCase):
|
||||
opus = "| opus | Anthropic | anthropic | host subagent `opus` | hard | flat | 5h: none; week: 10x Pro (https://example.test/c) | strong | |\n"
|
||||
self.assertEqual(self.record(HEAD + GO + HOST + opus + deep + FALL)[0], 0) # same provider may hold hard and deep
|
||||
from sisi import store # in-process picks read the list under the harness this run is in, not "unknown"
|
||||
shutil.copy(offered(self.data, HEAD + GO + HOST + opus + deep + FALL), os.path.join(self.data, "offered", store.harness() + ".txt"))
|
||||
listed, mine = offered(self.data, HEAD + GO + HOST + opus + deep + FALL), os.path.join(self.data, "offered", store.harness() + ".txt")
|
||||
listed == mine or shutil.copy(listed, mine) # with no harness (CI) they are one file
|
||||
twin = deep.replace("fable", "fable2")
|
||||
self.assertEqual(self.record(HEAD + GO + opus + deep + twin + FALL)[0], 1) # two deep rows for one provider refused
|
||||
self.assertEqual(self.record(HEAD + GO + deep.replace("| deep |", "| hard, deep |") + FALL)[0], 1) # multi-class refused
|
||||
|
||||
Reference in new issue
Block a user