The job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Python aiai-agentscareerclaude-codecover-lettercvinterview-preparationjob-applicationjob-huntingjob-searchlatexresume
fix(ci): skip the pristine-template guard in test_setup_command on forks (#463)
Nathan9484a6183126
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ad3b830a..410a8a57 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -47,6 +47,17 @@ per-file diff commands.### Fixed+- **The template-placeholder guard in `test_setup_command.py` now skips on forks** -+ `TemplatesStillCarryThePlaceholders` asserts that `05-cv-templates.md` and+ `06-cover-letter-templates.md` still contain `[FIRST_NAME]`, `[LAST_NAME]`, `[YOUR_EMAIL]`,+ `[YOUR_PHONE]`, `[YOUR_NAME]`, and `[YOUR_LINKEDIN_URL]`. Running `/setup` - the documented+ path, and what Step 3.5/3.6 of that command exist to do - replaces exactly those tokens, so on+ a personalized fork `python3 -m unittest discover -s tests` fails both checks permanently and+ marks every push red. The class now uses the same `@unittest.skipIf` on `GITHUB_REPOSITORY`+ (defaulting to upstream when unset, so local pristine-template runs still execute the guards)+ that `test_placeholder_integrity.py` received in #407. The guard landed three days after that+ fix and did not pick up the pattern; the `placeholder-integrity` CI job is upstream-gated and+ does not cover the `05`/`06` tokens, so `python-tests` was their only check.- **`verify_pdf.py --contains` now sees through LaTeX's typographic substitutions andthe pdflatex text layer keeps accents precomposed** (Discussions #385, #384) - thecomparison folded whitespace only, but LaTeX ligatures `'` into U+2019 and `--` intodiff --git a/tests/test_setup_command.py b/tests/test_setup_command.pyindex 315669e1..8e85f332 100644--- a/tests/test_setup_command.py+++ b/tests/test_setup_command.py@@ -9,9 +9,12 @@ were not, so a full Path B/C run left `[YOUR_NAME]`, `[YOUR_EMAIL]` andon the drafter noticing. A real user (#420) ran `/setup` and then hand-edited bothfiles to close the gap."""+import osimport unittestfrom pathlib import Path+UPSTREAM = "MadsLorentzen/ai-job-search"+REPO = Path(__file__).resolve().parent.parentCOMMAND = REPO / ".claude" / "commands" / "setup.md"SKILL_DIR = REPO / ".claude" / "skills" / "job-application-assistant"@@ -67,6 +70,10 @@ class SetupStep3ContactBlocks(unittest.TestCase):self.assertIn("06-cover-letter-templates.md", summary)+ os.environ.get("GITHUB_REPOSITORY", UPSTREAM) != UPSTREAM,+ "template-placeholder guard targets the pristine upstream template; forks personalize 05-cv-templates.md and 06-cover-letter-templates.md via /setup",+)class TemplatesStillCarryThePlaceholders(unittest.TestCase):"""The instructions above target real tokens; if a template renames them,the instruction and this test must move together."""