Files
awx/awx/main/tests/unit/utils/conftest.py
T
Vidya NambiarandCursor 2f91703b9d [AAP-86051] Bump DAB pin to match log_orm_bypass_violation API
CI builds awx_devel from requirements_git; pin at 282fb8e exposed a 6-arg
log_orm_bypass_violation while workflow pseudo-field audit uses the 5-arg
shape from newer DAB. Align pin with #1147 head and tighten dedupe test setup.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 15:59:33 -04:00

15 lines
514 B
Python

import logging
import pytest
_VALIDATION_SIGNALS_LOGGER = 'ansible_base.lib.utils.validation_signals'
@pytest.fixture(autouse=True)
def capture_validation_signal_logs_for_bypass_tests(request, caplog):
"""DAB caplog pattern (pytest + xdist); only for bypass observability tests."""
if request.module.__name__ != 'awx.main.tests.unit.utils.test_validation_bypass_observability':
return
caplog.set_level(logging.DEBUG)
caplog.set_level(logging.WARNING, logger=_VALIDATION_SIGNALS_LOGGER)