test(backend): update legacy agent and auth expectations

This commit is contained in:
2026-07-06 01:23:09 +03:00
parent 5d80f83869
commit 0256425c89
8 changed files with 21 additions and 9 deletions

View File

@@ -33,7 +33,10 @@ def pytest_collection_modifyitems(config, items):
if not config.getoption("--run-integration"):
skip_integration = pytest.mark.skip(reason="use --run-integration to run")
for item in items:
item.add_marker(skip_integration)
# Only skip items under tests/integration/ — the global hook
# applies to ALL items, not just integration tests.
if "/integration/" in item.nodeid:
item.add_marker(skip_integration)
import requests
from sqlalchemy import create_engine, event, text
from sqlalchemy.orm import Session, sessionmaker