deepshelf-api / tests /conftest.py
nice-bill's picture
initial commit
cdb73a8
raw
history blame contribute delete
327 Bytes
# tests/conftest.py
import logging
import pytest
@pytest.fixture(autouse=True)
def caplog_for_tests(caplog):
"""
Fixture to capture logs during tests and set a default logging level.
This prevents log messages from cluttering test output unless a test fails.
"""
caplog.set_level(logging.INFO)
yield