Skip to content

Commit

Permalink
Fix test failures for pydantic==2.9.0 (#15249)
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle authored Sep 5, 2024
1 parent 4ff5fb6 commit 76c4323
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/utilities/test_callables.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def f(x: Color = "RED"):
"type": "object",
"properties": {
"x": {
"allOf": [{"$ref": "#/definitions/Color"}],
"$ref": "#/definitions/Color",
"default": "RED",
"position": 0,
"title": "x",
Expand Down Expand Up @@ -296,7 +296,7 @@ def f(x: Foo):
},
"properties": {
"x": {
"allOf": [{"$ref": "#/definitions/Foo"}],
"$ref": "#/definitions/Foo",
"title": "x",
"position": 0,
}
Expand Down Expand Up @@ -324,7 +324,7 @@ def f(foo: Foo = Foo(bar="baz")):
"type": "object",
"properties": {
"foo": {
"allOf": [{"$ref": "#/definitions/Foo"}],
"$ref": "#/definitions/Foo",
"default": {"bar": "baz"},
"position": 0,
"title": "foo",
Expand Down Expand Up @@ -409,14 +409,14 @@ def f(
"type": "array",
},
"m": {
"allOf": [{"$ref": "#/definitions/Foo"}],
"$ref": "#/definitions/Foo",
"position": 2,
"title": "m",
},
"i": {"default": 0, "position": 3, "title": "i", "type": "integer"},
"x": {"default": 1.0, "position": 4, "title": "x", "type": "number"},
"model": {
"allOf": [{"$ref": "#/definitions/Foo"}],
"$ref": "#/definitions/Foo",
"default": {"bar": "bar"},
"position": 5,
"title": "model",
Expand All @@ -434,7 +434,7 @@ def f(
"title": "c",
"default": "BLUE",
"position": 9,
"allOf": [{"$ref": "#/definitions/Color"}],
"$ref": "#/definitions/Color",
},
},
"required": ["a", "s", "m"],
Expand Down Expand Up @@ -540,7 +540,7 @@ def h(color: Color = "RED"):
"type": "object",
"properties": {
"color": {
"allOf": [{"$ref": "#/definitions/Color"}],
"$ref": "#/definitions/Color",
"default": "RED",
"position": 0,
"title": "color",
Expand Down Expand Up @@ -1034,7 +1034,7 @@ def f(x: Color = Color.RED):
"type": "object",
"properties": {
"x": {
"allOf": [{"$ref": "#/definitions/Color"}],
"$ref": "#/definitions/Color",
"default": "RED",
"position": 0,
"title": "x",
Expand Down Expand Up @@ -1155,7 +1155,7 @@ def f(x: Foo):
},
"properties": {
"x": {
"allOf": [{"$ref": "#/definitions/Foo"}],
"$ref": "#/definitions/Foo",
"title": "x",
"position": 0,
}
Expand Down Expand Up @@ -1187,7 +1187,7 @@ def f(foo: Foo = Foo(bar="baz")):
"type": "object",
"properties": {
"foo": {
"allOf": [{"$ref": "#/definitions/Foo"}],
"$ref": "#/definitions/Foo",
"default": {"bar": "baz"},
"position": 0,
"title": "foo",
Expand Down Expand Up @@ -1279,14 +1279,14 @@ def f(
"type": "array",
},
"m": {
"allOf": [{"$ref": "#/definitions/Foo"}],
"$ref": "#/definitions/Foo",
"position": 2,
"title": "m",
},
"i": {"default": 0, "position": 3, "title": "i", "type": "integer"},
"x": {"default": 1.0, "position": 4, "title": "x", "type": "number"},
"model": {
"allOf": [{"$ref": "#/definitions/Foo"}],
"$ref": "#/definitions/Foo",
"default": {"bar": "bar"},
"position": 5,
"title": "model",
Expand All @@ -1304,7 +1304,7 @@ def f(
"title": "c",
"default": "BLUE",
"position": 9,
"allOf": [{"$ref": "#/definitions/Color"}],
"$ref": "#/definitions/Color",
},
},
"required": ["a", "s", "m"],
Expand Down Expand Up @@ -1504,7 +1504,7 @@ def f(
"type": "object",
"properties": {
"param": {
"allOf": [{"$ref": "#/definitions/MyModel"}],
"$ref": "#/definitions/MyModel",
"position": 0,
"title": "param",
}
Expand Down

0 comments on commit 76c4323

Please sign in to comment.