Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JONEMI21 committed Feb 11, 2025
1 parent 96d2c1a commit f36b1f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/validators/test_dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ class MyModel:
'config,schema_extra_behavior_kw',
[
(core_schema.CoreConfig(extra_fields_behavior='allow'), {}),
(core_schema.CoreConfig(extra_fields_behavior='allow'), {}),
(core_schema.CoreConfig(extra_fields_behavior='allow'), {'extra_behavior': None}),
(core_schema.CoreConfig(), {'extra_behavior': 'allow'}),
(None, {'extra_behavior': 'allow'}),
(core_schema.CoreConfig(extra_fields_behavior='forbid'), {'extra_behavior': 'allow'}),
Expand Down
4 changes: 2 additions & 2 deletions tests/validators/test_model_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ def test_frozen_field():
'config,schema_extra_behavior_kw',
[
(core_schema.CoreConfig(extra_fields_behavior='allow'), {}),
(core_schema.CoreConfig(extra_fields_behavior='allow'), {}),
(core_schema.CoreConfig(extra_fields_behavior='allow'), {'extra_behavior': None}),
(core_schema.CoreConfig(), {'extra_behavior': 'allow'}),
(None, {'extra_behavior': 'allow'}),
(core_schema.CoreConfig(extra_fields_behavior='forbid'), {'extra_behavior': 'allow'}),
Expand Down Expand Up @@ -1645,7 +1645,7 @@ def test_extra_behavior_allow(
'config,schema_extra_behavior_kw',
[
(core_schema.CoreConfig(extra_fields_behavior='forbid'), {}),
(core_schema.CoreConfig(extra_fields_behavior='forbid'), {}),
(core_schema.CoreConfig(extra_fields_behavior='forbid'), {'extra_behavior': None}),
(core_schema.CoreConfig(), {'extra_behavior': 'forbid'}),
(None, {'extra_behavior': 'forbid'}),
(core_schema.CoreConfig(extra_fields_behavior='allow'), {'extra_behavior': 'forbid'}),
Expand Down
4 changes: 2 additions & 2 deletions tests/validators/test_typed_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ def wrap_function(input_value, validator, info):
'config,schema_extra_behavior_kw',
[
(core_schema.CoreConfig(extra_fields_behavior='allow'), {}),
(core_schema.CoreConfig(extra_fields_behavior='allow'), {}),
(core_schema.CoreConfig(extra_fields_behavior='allow'), {'extra_behavior': None}),
(core_schema.CoreConfig(), {'extra_behavior': 'allow'}),
(None, {'extra_behavior': 'allow'}),
(core_schema.CoreConfig(extra_fields_behavior='forbid'), {'extra_behavior': 'allow'}),
Expand Down Expand Up @@ -1091,7 +1091,7 @@ def test_extra_behavior_allow(
'config,schema_extra_behavior_kw',
[
(core_schema.CoreConfig(extra_fields_behavior='forbid'), {}),
(core_schema.CoreConfig(extra_fields_behavior='forbid'), {}),
(core_schema.CoreConfig(extra_fields_behavior='forbid'), {'extra_behavior': None}),
(core_schema.CoreConfig(), {'extra_behavior': 'forbid'}),
(None, {'extra_behavior': 'forbid'}),
(core_schema.CoreConfig(extra_fields_behavior='allow'), {'extra_behavior': 'forbid'}),
Expand Down

0 comments on commit f36b1f4

Please sign in to comment.