From e44cbbc8eb9395cd5d7cb2526a38a84f7d4983db Mon Sep 17 00:00:00 2001 From: Yijia-Xiao Date: Mon, 28 Sep 2026 20:41:13 +0000 Subject: [PATCH] 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 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a291e9ef9..c999551f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [