Skip to content

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.

test(verify_pdf): skip the symlink refusal check where symlinks need a privilege

Mads Lorentzend83945f1368d
diff --git a/tests/test_verify_pdf.py b/tests/test_verify_pdf.py
index 84c776d8..da1b1b42 100644
--- a/tests/test_verify_pdf.py
+++ b/tests/test_verify_pdf.py
@@ -364,7 +364,10 @@ class DumpTargetTests(unittest.TestCase):
def test_symlink_out_of_cv_is_refused(self):
link = self.root / "cv" / "main_acme.txt"
- link.symlink_to(self.root / "outside.txt")
+ try:
+ link.symlink_to(self.root / "outside.txt")
+ except OSError as exc: # Windows without Developer Mode or admin rights (WinError 1314)
+ self.skipTest(f"cannot create symlinks here: {exc}")
self.assertEqual(check_dump_target(link, self.root), "must not be a symlink")
@patch("tools.verify_pdf.verify_pdf")