Skip to content
Snippets Groups Projects
Commit b9820311 authored by Taya Snijder's avatar Taya Snijder
Browse files

fixed unit test bugs

parent c36f8a11
No related branches found
No related tags found
1 merge request!197Resolve L2SS-363 "01 12 2021 get rw values from hardware"
...@@ -73,8 +73,12 @@ class test_client(CommClient): ...@@ -73,8 +73,12 @@ class test_client(CommClient):
""" """
takes all gathered data to configure and return the correct read and write functions takes all gathered data to configure and return the correct read and write functions
""" """
if dtype == str and dims == (1,):
self.value = numpy.zeros(dims, dtype) self.value = ''
elif dims == (1,):
self.value = dtype(0)
else:
self.value = numpy.zeros(dims, dtype)
def read_function(): def read_function():
logger.debug("from read_function, reading {} array of type {}".format(dims, dtype)) logger.debug("from read_function, reading {} array of type {}".format(dims, dtype))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment