mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-11 07:47:12 +02:00
fixing enum serialization for python 3.10
This commit is contained in:
@ -100,6 +100,8 @@ def test_enum_serialize() -> None:
|
||||
|
||||
def test_ColouredEnum_serialize() -> None:
|
||||
class Status(ColouredEnum):
|
||||
"""Status description."""
|
||||
|
||||
PENDING = "#FFA500"
|
||||
RUNNING = "#0000FF80"
|
||||
PAUSED = "rgb(169, 169, 169)"
|
||||
@ -121,7 +123,7 @@ def test_ColouredEnum_serialize() -> None:
|
||||
"RUNNING": "#0000FF80",
|
||||
},
|
||||
"readonly": False,
|
||||
"doc": None,
|
||||
"doc": "Status description.",
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user