Run tests with caplog in a single worker (#1304)

This commit is contained in:
Steven B.
2024-11-23 12:20:51 +00:00
committed by GitHub
parent 2bda54fcb1
commit 412c65c428
15 changed files with 23 additions and 1 deletions

View File

@@ -307,6 +307,7 @@ async def test_protocol_handles_cancellation_during_connection(
ids=("_deprecated_TPLinkSmartHomeProtocol", "IotProtocol-XorTransport"),
)
@pytest.mark.parametrize("log_level", [logging.WARNING, logging.DEBUG])
@pytest.mark.xdist_group(name="caplog")
async def test_protocol_logging(
mocker, caplog, log_level, protocol_class, transport_class, encryption_class
):
@@ -685,6 +686,7 @@ def test_deprecated_protocol():
@device_iot
@pytest.mark.xdist_group(name="caplog")
async def test_iot_queries_redaction(dev: IotDevice, caplog: pytest.LogCaptureFixture):
"""Test query sensitive info redaction."""
if isinstance(dev.protocol._transport, FakeIotTransport):