From 3d3c8c2e2e84f7e7ca4dcfe97a4d3c9023ebfd6e Mon Sep 17 00:00:00 2001 From: Vignesh Venkatasubramanian Vaidyanathan <62492557+VigneshVSV@users.noreply.github.com> Date: Fri, 9 Aug 2024 09:36:26 +0200 Subject: [PATCH] bug fix object proxy client --- hololinked/__init__.py | 2 +- setup.py | 2 +- tests/test_property.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hololinked/__init__.py b/hololinked/__init__.py index 3ced358..b5fdc75 100644 --- a/hololinked/__init__.py +++ b/hololinked/__init__.py @@ -1 +1 @@ -__version__ = "0.2.1" +__version__ = "0.2.2" diff --git a/setup.py b/setup.py index 59172c8..e4083a5 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setuptools.setup( name="hololinked", - version="0.2.1", + version="0.2.2", author="Vigneh Vaidyanathan", author_email="vignesh.vaidyanathan@hololinked.dev", description="A ZMQ-based Object Oriented RPC tool-kit with HTTP support for instrument control/data acquisition or controlling generic python objects.", diff --git a/tests/test_property.py b/tests/test_property.py index 8583a3d..4115fe6 100644 --- a/tests/test_property.py +++ b/tests/test_property.py @@ -97,7 +97,7 @@ def test_1_client_api(self): def test_2_RW_multiple_properties(self): # Test partial list of read write properties - self.thing_client.set_properties( + self.thing_client.write_multiple_properties( number_prop=15, string_prop='foobar' ) @@ -108,7 +108,7 @@ def test_2_RW_multiple_properties(self): self.thing_client.selector_prop = 'b' self.thing_client.number_prop = -15 - props = self.thing_client.get_properties(names=['selector_prop', 'int_prop', + props = self.thing_client.read_multiple_properties(names=['selector_prop', 'int_prop', 'number_prop', 'string_prop']) self.assertEqual(props['selector_prop'], 'b') self.assertEqual(props['int_prop'], 5) @@ -210,7 +210,7 @@ def test_4_db_operations(self): self.assertEqual(thing.db_commit_number_prop, TestThing.db_commit_number_prop.default) # check db init prop with a different value in database apart from default - thing.db_engine.set_property('db_init_int_prop', 101) + thing.db_engine.write_property('db_init_int_prop', 101) del thing thing = TestThing(instance_name='test-db-operations', use_default_db=True, log_level=logging.WARN) self.assertEqual(thing.db_init_int_prop, 101)