tests: update client_id test

This commit is contained in:
Mose Müller 2025-05-22 16:12:38 +02:00
parent f48f7aacfb
commit e54710cd4d

View File

@ -168,9 +168,11 @@ def test_context_manager(pydase_client: pydase.Client) -> None:
def test_client_id(
pydase_client: pydase.Client, caplog: pytest.LogCaptureFixture
) -> None:
import socket
pydase.Client(url="ws://localhost:9999")
assert "Client [sid=" in caplog.text
assert f"Client [id={socket.gethostname()}]" in caplog.text
caplog.clear()
pydase.Client(url="ws://localhost:9999", client_id="my_service")