Skip to content

Commit

Permalink
bug fix object proxy client
Browse files Browse the repository at this point in the history
  • Loading branch information
VigneshVSV committed Aug 9, 2024
1 parent b5581d4 commit 3d3c8c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hololinked/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.1"
__version__ = "0.2.2"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3d3c8c2

Please sign in to comment.