From d83fb9cfa86f2379285e3437a7532c2e0e6514f4 Mon Sep 17 00:00:00 2001 From: lekss361 Date: Fri, 15 May 2026 15:04:10 +0300 Subject: [PATCH] fix(test): exclude prod_smoke tests by default (#168) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI ran tests/smoke/test_prod_smoke.py and they hit production https://gendsgn.ru/api/v1/parcels/.../analyze which currently returns 500 (parse_floors regression — exactly what this PR fixes). Catch-22: PR can't merge because smoke tests fail against pre-merge prod. Fix: add `addopts = ["-m", "not prod_smoke"]` so default pytest excludes them. Run manually post-deploy with: pytest -m prod_smoke -v --- backend/pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 89525714..dbbbb3b0 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -79,6 +79,8 @@ strict = true [tool.pytest.ini_options] testpaths = ["tests"] asyncio_mode = "auto" +addopts = ["-m", "not prod_smoke"] markers = [ "slow: marks tests as slow (need real network, deselect with -m 'not slow')", + "prod_smoke: production smoke tests against live https://gendsgn.ru (run only post-deploy with -m prod_smoke)", ]