test: run the live integration tests only when asked for

- pytest deselects integration tests unless -m integration is given, so a key in .env no longer makes a plain run call a paid provider
This commit is contained in:
Yijia-Xiao
2026-09-29 05:57:18 +00:00
parent 4bb9272c8f
commit e44cbbc8eb
+2 -2
View File
@@ -53,10 +53,10 @@ cli = ["static/*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers"
addopts = "-ra --strict-markers -m \"not integration\""
markers = [
"unit: fast isolated unit tests",
"integration: tests requiring external services",
"integration: tests requiring external services; run only when asked for, with -m integration",
"smoke: quick sanity-check tests",
]
filterwarnings = [