misc(tests): add recordings for responses tests

This commit is contained in:
Ashwin Bharambe 2025-10-21 16:39:08 -07:00
parent 557b1b8c2d
commit c0c0e337d9
33 changed files with 49747 additions and 0 deletions

View file

@ -5,6 +5,7 @@
# the root directory of this source tree.
import inspect
import itertools
import logging # allow-direct-logging
import os
import tempfile
import textwrap
@ -57,6 +58,12 @@ def pytest_sessionstart(session):
patch_httpx_for_test_id()
@pytest.fixture(autouse=True)
def suppress_httpx_logs(caplog):
"""Suppress httpx INFO logs for all integration tests"""
caplog.set_level(logging.WARNING, logger="httpx")
@pytest.fixture(autouse=True)
def _track_test_context(request):
"""Automatically track current test context for isolated recordings.