Add first test suite; fix Timer resume, scraper silent failure
- backend/services/auth_test.go: token-version normalisation, the revocation rule, GenerateJWT/VerifyJWT claim handling. The happy path of AuthenticateTokenWithClaims still needs a DB driver we don't have. - python/tests: travelodge.py's pure functions and the NDJSON event contract. pytest is a commented-out dev dep so the image stays slim. - Timer.vue: the Paused screen now offers Resume, reaching pauseTimer's previously unreachable un-pause branch. - travelodge.py: warn when upstream parses but yields nothing usable, so a field rename is distinguishable from sold-out inventory. - CoverLetters.vue moved out of views/unused/ — it is live on /cv. Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
"""Make `python/` importable so `app.travelodge` resolves.
|
||||
|
||||
The Docker image runs uvicorn from /python with the app as a package, but
|
||||
pytest is run from wherever the developer happens to be, so the package root is
|
||||
put on sys.path explicitly rather than relying on rootdir inference.
|
||||
"""
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
||||
Reference in New Issue
Block a user