Answer stability round 1: 0 🔴, 4 🟡 (0 misread); a chunk window is handed the two XDG variables, rule-hook's checks are tested under them, and three tests stop passing the developer's
CI / tests (pull_request) Successful in 5m16s

This commit is contained in:
2026-12-03 21:30:06 +01:00
parent 173d591986
commit 9b8f9e05e7
7 changed files with 82 additions and 16 deletions
+10 -1
View File
@@ -6,7 +6,16 @@ import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from failure import Failure
from chunk_driver.claims import LOCK, starting
from chunk_driver.claims import handed, LOCK, starting
class Handed(unittest.TestCase):
def test_hands_a_window_the_setups_own_variables_and_the_two_that_move_its_folders(self) -> None:
env = {"BUILD_RELEASE_JUDGE_MODEL": "judge", "XDG_CONFIG_HOME": "/configs", "XDG_STATE_HOME": "/state", "XDG_DATA_HOME": "/data", "PATH": "/bin"}
self.assertEqual(handed(env), {"BUILD_RELEASE_JUDGE_MODEL": "judge", "XDG_CONFIG_HOME": "/configs", "XDG_STATE_HOME": "/state"})
def test_hands_no_variable_the_starter_lacks(self) -> None:
self.assertEqual(handed({"PATH": "/bin"}), {})
class Starting(unittest.TestCase):