fix(specs): qualify seen_jobs.json as job_scraper/seen_jobs.json in /rank, /notion-sync and /upskill (#617)

Follow-up to #608 at the maintainer's invitation. /scrape already names the full
path; the three readers still used the bare filename, which an agent can resolve
to the repo root (outside the **/job_scraper/seen_jobs.json ignore rule).
The guard test now covers all four specs; test_notion_sync_command pins the
qualified phrase. 04-job-evaluation.md is left alone on purpose: forks
personalize it, and a one-word fix there would force a framework_version bump.
This commit is contained in:
Mariano Gobea Alcoba authored and GitHub committed 2026-10-18 08:09:09 +02:00
1 parent 12b757189a
commit 24db6b3b59
6 files changed
+43 -25

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ class NotionSyncCommandSpec(unittest.TestCase):
# lookup of `role` on the entry, which never matches, so one job became
# two Notion rows with different Keys. The join is role-vs-title.
text = COMMAND.read_text(encoding="utf-8")
line = next(l for l in text.splitlines() if "matched to `seen_jobs.json` entries" in l)
line = next(l for l in text.splitlines() if "matched to `job_scraper/seen_jobs.json` entries" in l)
self.assertIn("company + title", line)
self.assertIn("`title`", line)
self.assertIn("`role`", line)