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
+2 -1
View File
@@ -13,6 +13,7 @@ from failure import Failure
from project_record import main
from record_store.fakes import MemoryStore
from project_config.settings import Page, ProjectConfig
from loop_state.paths import without_xdg_folders
TOOL = pathlib.Path(__file__).resolve().parents[1] / "project-record"
@@ -135,7 +136,7 @@ class BlackBox(unittest.TestCase):
self.home = configured(self, self.top).parents[2]
def run_tool(self, *args: str) -> subprocess.CompletedProcess[str]:
return subprocess.run([sys.executable, str(TOOL), *args], capture_output=True, cwd=self.top, env=os.environ | {"HOME": str(self.home)}, text=True)
return subprocess.run([sys.executable, str(TOOL), *args], capture_output=True, cwd=self.top, env=without_xdg_folders(os.environ) | {"HOME": str(self.home)}, text=True)
def test_a_file_record_opens_as_its_own_file_and_save_has_nothing_to_store(self):
opened = self.run_tool("open", "decisions")