Mose Müller
f4fa02fe11
adds test enuring dict keys can be encoded with both single and double quotes
2024-09-23 13:16:50 +02:00
Mose Müller
6b6ce1d43f
adds test checking for multiple instances of a class containing a task
2024-09-23 09:44:43 +02:00
Mose Müller
20028c379d
test: updates task tests
2024-09-21 09:04:04 +02:00
Mose Müller
1ac9e45c73
test: updates task test to catch recursion when defining without autostart
2024-09-21 08:36:47 +02:00
Mose Müller
32e36d4962
adds task tests
2024-09-16 07:53:46 +02:00
Mose Müller
e88965b69d
fixes device connection test
2024-09-13 16:09:39 +02:00
Mose Müller
2e31ebb7d9
fixes or removes task-related tests
2024-09-13 16:07:29 +02:00
Mose Müller
1ac08bf97d
fixes client test
2024-08-12 13:19:45 +02:00
Mose Müller
d45d2dba7d
updates api tests
2024-07-30 10:15:34 +02:00
Mose Müller
75e355faf9
pytest: changes fixture scopes
2024-07-30 08:36:59 +02:00
Mose Müller
f91be30ad0
adds tests for http api endpoints
2024-07-30 08:28:37 +02:00
Mose Müller
7e63f34c0a
pytest: using asyncio session scope to get rid of more warnings
2024-07-30 08:28:18 +02:00
Mose Müller
2364fc892c
pytest: removes warning (could not join thread)
2024-07-30 08:28:18 +02:00
Mose Müller
a1da332dba
pytest: configures logging through caplog fixture
2024-07-30 08:28:07 +02:00
Mose Müller
d09675de6a
updates client test
2024-07-29 15:06:54 +02:00
Mose Müller
36d3a7becc
restructure StateManager to allow extending dictionaries through clients
2024-07-29 15:02:47 +02:00
Mose Müller
d54eed8a58
get_object_by_path_parts and get_object_attr_from_path do not catch exceptions any more
2024-07-29 15:02:47 +02:00
Mose Müller
817afc610a
StateManager: replaces _data_service_cache with cache_manager
...
- _data_service_cache -> cache_manager
- removes cache property
- replaces get_nested_dict_by_path with cache_manager.get_value_dict_from_cache where possible
2024-07-29 15:02:47 +02:00
Mose Müller
0e5f1ede20
fixes logging test
2024-07-12 07:45:11 +02:00
Mose Müller
f8cae28128
fix tests: need to propagate logger when testing (due to pytest)
2024-07-11 19:49:55 +02:00
Mose Müller
cf0780b2ca
adds support for datetime serialization
2024-07-09 15:41:30 +02:00
Mose Müller
44d73c3b77
adds function testing if private attributes can take values that are not serializable
2024-07-04 17:37:44 +02:00
Mose Müller
ae79150252
adds tests for validate_set timeout
2024-05-28 13:08:01 +02:00
Mose Müller
00c6d4c068
adds validate_set decorator precision test
2024-05-28 12:08:23 +02:00
Mose Müller
84abd63d56
Merge branch 'main' into feature/ignore_coroutine
2024-05-27 15:08:14 +02:00
Mose Müller
a0b7b92898
fixes test
2024-05-27 14:42:30 +02:00
Mose Müller
9c3c92361b
updates tests
2024-05-21 14:03:25 +02:00
Mose Müller
6a894b6154
adds test for dict/list garbage collection
2024-05-21 13:42:25 +02:00
Mose Müller
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
Mose Müller
ed80c92b1f
adds dict test for pydase.Client
...
The pop
2024-04-30 15:33:56 +02:00
Mose Müller
3384d1bebf
adds dict.pop method to ObservableDict
2024-04-30 13:15:42 +02:00
Mose Müller
2701a995e1
updates test_helpers (replacing float key with dotted string key)
2024-04-30 11:48:05 +02:00
Mose Müller
47a73ad55f
moves _ObservableDict tests into separate file
2024-04-30 11:47:22 +02:00
Mose Müller
8fa91e8121
adds tests for generate_serialized_data_paths and get_data_paths_from_serialized_object
2024-04-30 10:02:13 +02:00
Mose Müller
1c1584c2cf
fixes dictionary serialization for keys that are not strings
2024-04-30 10:02:13 +02:00
Mose Müller
bb3d6fcce1
updates _ObservableDict
...
- allows for strings and numbers now
- key will have double quotes (") instead of single quote (') when key is a string
- fixed some few things
- added/updated tests
2024-04-30 10:02:13 +02:00
Mose Müller
dc40fc299f
adds test for failing get_object_by_path_parts
2024-04-26 09:49:27 +02:00
Mose Müller
348f8aac9b
removes tests for get_object_attr_from_path (uses get_object_by_path_parts internally)
2024-04-26 09:49:01 +02:00
Mose Müller
b314ae7dec
updates helper tests
2024-04-26 09:42:57 +02:00
Mose Müller
1ee6a299b2
updates tests for is_property_attribute
2024-04-26 09:25:11 +02:00
Mose Müller
87d172b94b
simplifies, documents and tests parse_serialized_key helper function
2024-04-26 08:15:21 +02:00
Mose Müller
66376e2e6c
removes parse_keyed_attribute
2024-04-25 17:40:33 +02:00
Mose Müller
2898b62b9c
adds parse_serialized_key and get_object_by_path_parts helper methods
2024-04-25 17:33:32 +02:00
Mose Müller
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
Mose Müller
c75b203c3d
creates functions to split full access paths and combine the atomic parts back together
2024-04-25 16:30:20 +02:00
Mose Müller
7e06944018
updates tests for get_next_level_dict_by_key
2024-04-25 10:52:53 +02:00
Mose Müller
8fd83fbd7d
updates get_object_attr_from_path to support dictionaries
2024-04-23 14:21:39 +02:00
Mose Müller
216368571a
fixes parse_keyed_attributes
2024-04-22 19:31:29 +02:00
Mose Müller
6cae76bde1
adds tests for parse_keyed_attribute
2024-04-22 19:11:02 +02:00
Mose Müller
fe01ada733
adds tab completion test for client
2024-04-16 11:29:44 +02:00