Update ruff and run ruff format

This commit is contained in:
James Hilliard
2025-01-14 18:20:02 +02:00
committed by Arun Babu Neelicattu
parent dbc612c7f3
commit 6a65ca94bc
11 changed files with 69 additions and 69 deletions

View File

@@ -27,9 +27,9 @@ def test_enum_is_comparable_with_int():
def test_enum_to_dict():
assert (
"choice" not in Test(choice=Choice.ZERO).to_dict()
), "Default enum value is not serialized"
assert "choice" not in Test(choice=Choice.ZERO).to_dict(), (
"Default enum value is not serialized"
)
assert (
Test(choice=Choice.ZERO).to_dict(include_default_values=True)["choice"]
== "ZERO"