mirror of
https://github.com/ansible/awx.git
synced 2026-10-30 06:13:24 -02:30
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>
15 lines
514 B
Python
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)
|