test(General): write test for pydantic serializer, fixed serialization bug
Unit test coverage / pytest (push) Failing after 3h11m8s
Unit test coverage / pytest (push) Failing after 3h11m8s
This commit write unit tests for pydantic serializer using cursor ai, and found an issue related to serialization. Originally, the code uses comma to concat string, but map and list also has comma inside. During the deserialization, split using comma will break map and list, leaving `{` with first kv pair for map, and `[` with first element with list. Instead of using concat with comma as separator, I use json to encode the object dict.
This commit is contained in:
+2
-1
@@ -49,5 +49,6 @@ dev = [
|
||||
"black",
|
||||
"isort",
|
||||
"flake8",
|
||||
"pre-commit"
|
||||
"pre-commit",
|
||||
"pylint"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user