mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-12 07:57:11 +02:00
adds support for datetime serialization
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import enum
|
||||
from datetime import datetime
|
||||
from typing import Any
|
||||
|
||||
import pydase.components
|
||||
@ -137,6 +138,16 @@ def test_loads_primitive_types(obj: Any, obj_serialization: SerializedObject) ->
|
||||
"name": "MyService",
|
||||
},
|
||||
),
|
||||
(
|
||||
datetime.fromisoformat("2024-07-09 15:37:08.249845"),
|
||||
{
|
||||
"full_access_path": "",
|
||||
"type": "datetime",
|
||||
"value": "2024-07-09 15:37:08.249845",
|
||||
"readonly": True,
|
||||
"doc": None,
|
||||
},
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_loads_advanced_types(obj: Any, obj_serialization: SerializedObject) -> None:
|
||||
|
Reference in New Issue
Block a user