Add opt-in live API end-to-end test

- test_e2e_api.py: minimal 2-address (4-element) call to the real Google
  Routes API; reads the real key from env/.env and skips on a placeholder.
- Marked `e2e` and deselected by default via addopts; run with
  `pytest -m e2e`.
This commit is contained in:
2026-06-19 14:30:10 +02:00
parent 2c60b83d8a
commit ba59235c3e
2 changed files with 72 additions and 1 deletions
+5 -1
View File
@@ -28,4 +28,8 @@ build-backend = "hatchling.build"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
# Deselect live API tests by default; run them with `pytest -m e2e`.
addopts = "-q -m 'not e2e'"
markers = [
"e2e: live tests that call the real Google Routes API (opt-in, costs quota)",
]