Skip to content

Commit

Permalink
fixup! fix bitrot in tests
Browse files Browse the repository at this point in the history
We do care about the order of Union.union_fields.

This reverts commit cbad82b.
  • Loading branch information
dairiki committed Sep 16, 2023
1 parent d2b545a commit 0a5018e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_field_for_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ def test_optional_multiple_types(self):
field_for_schema(Optional[Union[int, str]]),
union_field.Union(
[
(str, fields.String(required=True)),
(int, fields.Integer(required=True)),
(str, fields.String(required=True)),
],
required=False,
dump_default=None,
Expand Down
1 change: 0 additions & 1 deletion tests/test_mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
follow_imports = silent
plugins = marshmallow_dataclass.mypy
show_error_codes = true
python_version = 3.6
env:
- PYTHONPATH=.
main: |
Expand Down

0 comments on commit 0a5018e

Please sign in to comment.