Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
abondar committed May 14, 2024
1 parent 452e5d5 commit 9f1de42
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 7 deletions.
32 changes: 27 additions & 5 deletions tests/contrib/test_pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,12 @@ def test_team_schema(self):
"additionalProperties": False,
"description": "Team that is a playing",
"properties": {
"id": {"maximum": 2147483647, "minimum": -2147483648, "title": "Id", "type": "integer"},
"id": {
"maximum": 2147483647,
"minimum": -2147483648,
"title": "Id",
"type": "integer",
},
"name": {"title": "Name", "type": "string"},
"alias": {
"anyOf": [
Expand Down Expand Up @@ -1325,7 +1330,11 @@ def test_schema(self):
},
"manager_id": {
"anyOf": [
{"maximum": 2147483647, "minimum": -2147483648, "type": "integer"},
{
"maximum": 2147483647,
"minimum": -2147483648,
"type": "integer",
},
{"type": "null"},
],
"nullable": True,
Expand Down Expand Up @@ -1358,7 +1367,11 @@ def test_schema(self):
},
"manager_id": {
"anyOf": [
{"maximum": 2147483647, "minimum": -2147483648, "type": "integer"},
{
"maximum": 2147483647,
"minimum": -2147483648,
"type": "integer",
},
{"type": "null"},
],
"nullable": True,
Expand Down Expand Up @@ -1386,7 +1399,11 @@ def test_schema(self):
"name": {"maxLength": 50, "title": "Name", "type": "string"},
"manager_id": {
"anyOf": [
{"maximum": 2147483647, "minimum": -2147483648, "type": "integer"},
{
"maximum": 2147483647,
"minimum": -2147483648,
"type": "integer",
},
{"type": "null"},
],
"nullable": True,
Expand All @@ -1400,7 +1417,12 @@ def test_schema(self):
},
"additionalProperties": False,
"properties": {
"id": {"maximum": 2147483647, "minimum": -2147483648, "title": "Id", "type": "integer"},
"id": {
"maximum": 2147483647,
"minimum": -2147483648,
"title": "Id",
"type": "integer",
},
"name": {"maxLength": 50, "title": "Name", "type": "string"},
"talks_to": {
"items": {"$ref": "#/$defs/Employee_5gupxf"},
Expand Down
14 changes: 12 additions & 2 deletions tests/test_early_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ def test_early_init(self):
"type": "object",
"description": "The Event model docstring.<br/><br/>This is multiline docs.",
"properties": {
"id": {"title": "Id", "type": "integer", "maximum": 2147483647, "minimum": -2147483648},
"id": {
"title": "Id",
"type": "integer",
"maximum": 2147483647,
"minimum": -2147483648,
},
"name": {
"title": "Name",
"type": "string",
Expand Down Expand Up @@ -187,7 +192,12 @@ def test_early_init(self):
"additionalProperties": False,
"description": "The Event model docstring.<br/><br/>This is multiline docs.",
"properties": {
"id": {"maximum": 2147483647, "minimum": -2147483648, "title": "Id", "type": "integer"},
"id": {
"maximum": 2147483647,
"minimum": -2147483648,
"title": "Id",
"type": "integer",
},
"name": {
"description": "The Event NAME<br/>It's pretty important",
"maxLength": 255,
Expand Down

0 comments on commit 9f1de42

Please sign in to comment.