Commit Graph

54 Commits

Author SHA1 Message Date
b209ad75bb fixes serializer types and test
pydase dicts can only have stringed keys. This is now reflected in the serializer, as well.
2024-04-30 15:46:39 +02:00
2701a995e1 updates test_helpers (replacing float key with dotted string key) 2024-04-30 11:48:05 +02:00
8fa91e8121 adds tests for generate_serialized_data_paths and get_data_paths_from_serialized_object 2024-04-30 10:02:13 +02:00
1c1584c2cf fixes dictionary serialization for keys that are not strings 2024-04-30 10:02:13 +02:00
dc40fc299f adds test for failing get_object_by_path_parts 2024-04-26 09:49:27 +02:00
348f8aac9b removes tests for get_object_attr_from_path (uses get_object_by_path_parts internally) 2024-04-26 09:49:01 +02:00
b314ae7dec updates helper tests 2024-04-26 09:42:57 +02:00
1ee6a299b2 updates tests for is_property_attribute 2024-04-26 09:25:11 +02:00
87d172b94b simplifies, documents and tests parse_serialized_key helper function 2024-04-26 08:15:21 +02:00
66376e2e6c removes parse_keyed_attribute 2024-04-25 17:40:33 +02:00
2898b62b9c adds parse_serialized_key and get_object_by_path_parts helper methods 2024-04-25 17:33:32 +02:00
b29c86ac2c updates Serializer functions
- using parse_full_access_path instead of parse_keyed_attribute
- renames get_next_level_dict_by_key to get_container_item_by_key
- replaces ensure_exists and get_nested_value by get_or_create_item_in_container

This allows us to handle access paths like "dict_attr['key'][0].some_attr".
2024-04-25 16:52:40 +02:00
c75b203c3d creates functions to split full access paths and combine the atomic parts back together 2024-04-25 16:30:20 +02:00
7e06944018 updates tests for get_next_level_dict_by_key 2024-04-25 10:52:53 +02:00
8fd83fbd7d updates get_object_attr_from_path to support dictionaries 2024-04-23 14:21:39 +02:00
216368571a fixes parse_keyed_attributes 2024-04-22 19:31:29 +02:00
6cae76bde1 adds tests for parse_keyed_attribute 2024-04-22 19:11:02 +02:00
16bd17f75c adds deserializer tests 2024-04-09 09:25:01 +02:00
9916d6df60 adds support for dynamically adding attributes to DataService instances 2024-03-28 14:30:09 +01:00
f18880abd5 moves serializer tests into separate module 2024-03-27 16:31:08 +01:00
57e7deb552 Serializer adds full_access_path to serialized object representation 2024-03-26 10:52:06 +01:00
d9ea33abb6 adds enum name to serialized object representation 2024-03-26 10:50:16 +01:00
51ffd8be4d simplifies serializer logic 2024-03-06 18:56:15 +01:00
4aee899dbe updates type hints for serialized objects 2024-03-06 18:23:26 +01:00
7d21bca8b1 adds test for changing task state 2024-03-05 16:05:09 +01:00
99c7ad0ec8 updates serializer tests 2024-03-05 14:28:53 +01:00
151467b36f fixes tests 2024-02-27 17:38:09 +01:00
a7ce321506 updates / fixes method serialization tests 2024-02-27 16:32:47 +01:00
e8638f1f3a fixes tests 2024-02-01 08:45:40 +01:00
484b5131e9 fixing enum serialization for python 3.10 2024-01-16 14:13:36 +01:00
f69723dd58 updates some tests to have a running event loop 2023-12-21 13:11:49 +01:00
32bda8d910 updates generate_serialized_data_paths method, adds tests 2023-12-20 10:15:25 +01:00
464478cda9 removes helper function to create config folder 2023-12-20 10:14:07 +01:00
4fcd5b4d44 adds helper function to create config folder 2023-12-18 12:04:31 +01:00
a48cce32e4 chore: formatting tests 2023-12-18 11:59:20 +01:00
88886e3fd6 fixed serialization of class deriving from class which derives from DataService 2023-12-11 17:25:03 +01:00
0faf347376 moves inheritance warning into DataService, improves logic 2023-12-11 09:15:08 +01:00
e3367efda1 removes corresponding test 2023-12-06 09:12:00 +01:00
75ee71cbf8 fixes warnings tests 2023-12-05 11:24:17 +01:00
89b5a9cc9e updates tests 2023-12-04 17:23:42 +01:00
c891642bda updates tests 2023-12-04 13:36:16 +01:00
ab794d780b implements logging suggestions (no f-strings) 2023-11-27 17:16:15 +01:00
5e136c2784 renames test file 2023-11-07 18:26:13 +01:00
0a94b32011 updates serializer tests 2023-11-07 18:25:57 +01:00
14b5219915 refactoring serializer module methods 2023-11-07 18:23:24 +01:00
dc70f3cfcf renames functions, adds docstrings 2023-11-07 16:59:59 +01:00
cdd657f895 adds tests for update_serialization_dict method 2023-11-07 16:43:09 +01:00
3440a632ad moving set_nested_value_in_dict to Serializer, renaming module 2023-11-06 18:27:00 +01:00
2b57df5aac adds tests for serialization (and moves tests from test_data_service) 2023-11-02 14:11:08 +01:00
7b04298ead add logging tests 2023-10-16 15:52:09 +02:00