mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-24 08:47:26 +00:00
misc(tests): add recordings for responses tests
This commit is contained in:
parent
557b1b8c2d
commit
c0c0e337d9
33 changed files with 49747 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue