From 96f695020bb898fb2e535e61f37a58fe57e45377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 19 Jun 2025 14:03:05 +0200 Subject: [PATCH] adds client tests for direct api functions --- tests/client/test_client.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/client/test_client.py b/tests/client/test_client.py index eff1bd3..5de30aa 100644 --- a/tests/client/test_client.py +++ b/tests/client/test_client.py @@ -177,3 +177,16 @@ def test_client_id( pydase.Client(url="ws://localhost:9999", client_id="my_service") assert "Client [id=my_service] connected" in caplog.text + + +def test_get_value( + pydase_client: pydase.Client, caplog: pytest.LogCaptureFixture +) -> None: + pydase_client.update_value("sub_service.name", "Other name") + + assert pydase_client.get_value("sub_service.name") == "Other name" + + assert ( + pydase_client.trigger_method("my_async_method", input_str="Hello World") + == "Hello World" + )