Files
TapTap 34b46a92db
CI / build-and-test (push) Successful in 48s
CI / build-and-test (pull_request) Successful in 49s
tests: share server across tests, suppress probe noise
- Add session-scoped shared_server fixture to avoid 27+ server start/stop cycles
- Refactor test_tcp.py and test_features.py to use shared server
- Suppress server health-check probe stderr noise in common.py
2026-07-18 19:48:19 +02:00

18 lines
428 B
Python

"""Shared pytest configuration for integration tests."""
import os
import sys
import pytest
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "integration"))
from common import ServerManager
@pytest.fixture(scope="session")
def shared_server():
"""One server for the entire test session. Avoids 27+ server start/stop cycles."""
server = ServerManager()
server.start()
yield server
server.stop()