mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-09-17 00:26:26 +00:00
fix(ci): skip the pristine-template guard in test_setup_command on forks (#463)
TemplatesStillCarryThePlaceholders asserts 05-cv-templates.md and 06-cover-letter-templates.md still carry their [FIRST_NAME]/[YOUR_*] tokens. /setup's documented Step 3.5/3.6 personalisation replaces exactly those tokens, so python-tests failed permanently on any personalized fork. Same @unittest.skipIf on GITHUB_REPOSITORY (defaulting to upstream when unset) as test_placeholder_integrity.py received in #407; that fix landed three days before this guard, which did not pick up the pattern. Co-authored-by: Nathan No-ot <244263078+Nnoot02@users.noreply.github.com>
This commit is contained in:
@@ -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 and
|
||||
the pdflatex text layer keeps accents precomposed** (Discussions #385, #384) - the
|
||||
comparison folded whitespace only, but LaTeX ligatures `'` into U+2019 and `--` into
|
||||
|
||||
Reference in New Issue
Block a user