Skip to content

Commit

Permalink
Merge pull request #50 from bollwyvl/patch-1
Browse files Browse the repository at this point in the history
Use default_factory in tests
  • Loading branch information
gshank authored Mar 24, 2023
2 parents ba10f86 + b7f7403 commit d4e1101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Bar(JsonSchemaMixin):
class Baz(JsonSchemaMixin):
"""Type with nested default value"""

a: Point = field(default=Point(0.0, 0.0))
a: Point = field(default_factory=lambda: Point(0.0, 0.0))


@dataclass
Expand Down

0 comments on commit d4e1101

Please sign in to comment.