Serde: fixup & tests after changed serialization

This commit is contained in:
Johannes Kirschbauer
2024-10-18 11:52:27 +02:00
parent 60174a9399
commit 3bc2991903
3 changed files with 17 additions and 20 deletions

View File

@@ -217,8 +217,8 @@ def test_none_or_string() -> None:
def test_roundtrip_escape() -> None:
assert from_dict(str, "\\n") == "\n"
assert dataclass_to_dict("\n") == "\\n"
assert from_dict(str, "\n") == "\n"
assert dataclass_to_dict("\n") == "\n"
# Test that the functions are inverses of each other
# f(g(x)) == x