Skip to content

Commit

Permalink
馃摑Fixed tests regarding the typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dauletkhan Assanov authored and Dauletkhan Assanov committed May 6, 2024
1 parent 88a7f70 commit e8efce6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/test_tutorial/test_body_fields/test_tutorial001.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_openapi_schema(client: TestClient):
"name": {"title": "Name", "type": "string"},
"description": IsDict(
{
"title": "The description of the item",
"title": "The title of the item",
"anyOf": [
{"maxLength": 300, "type": "string"},
{"type": "null"},
Expand All @@ -142,7 +142,7 @@ def test_openapi_schema(client: TestClient):
| IsDict(
# TODO: remove when deprecating Pydantic v1
{
"title": "The description of the item",
"title": "The title of the item",
"maxLength": 300,
"type": "string",
}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_tutorial/test_body_fields/test_tutorial001_an.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_openapi_schema(client: TestClient):
"name": {"title": "Name", "type": "string"},
"description": IsDict(
{
"title": "The description of the item",
"title": "The title of the item",
"anyOf": [
{"maxLength": 300, "type": "string"},
{"type": "null"},
Expand All @@ -142,7 +142,7 @@ def test_openapi_schema(client: TestClient):
| IsDict(
# TODO: remove when deprecating Pydantic v1
{
"title": "The description of the item",
"title": "The title of the item",
"maxLength": 300,
"type": "string",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_openapi_schema(client: TestClient):
"name": {"title": "Name", "type": "string"},
"description": IsDict(
{
"title": "The description of the item",
"title": "The title of the item",
"anyOf": [
{"maxLength": 300, "type": "string"},
{"type": "null"},
Expand All @@ -148,7 +148,7 @@ def test_openapi_schema(client: TestClient):
| IsDict(
# TODO: remove when deprecating Pydantic v1
{
"title": "The description of the item",
"title": "The title of the item",
"maxLength": 300,
"type": "string",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_openapi_schema(client: TestClient):
"name": {"title": "Name", "type": "string"},
"description": IsDict(
{
"title": "The description of the item",
"title": "The title of the item",
"anyOf": [
{"maxLength": 300, "type": "string"},
{"type": "null"},
Expand All @@ -148,7 +148,7 @@ def test_openapi_schema(client: TestClient):
| IsDict(
# TODO: remove when deprecating Pydantic v1
{
"title": "The description of the item",
"title": "The title of the item",
"maxLength": 300,
"type": "string",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_openapi_schema(client: TestClient):
"name": {"title": "Name", "type": "string"},
"description": IsDict(
{
"title": "The description of the item",
"title": "The title of the item",
"anyOf": [
{"maxLength": 300, "type": "string"},
{"type": "null"},
Expand All @@ -148,7 +148,7 @@ def test_openapi_schema(client: TestClient):
| IsDict(
# TODO: remove when deprecating Pydantic v1
{
"title": "The description of the item",
"title": "The title of the item",
"maxLength": 300,
"type": "string",
}
Expand Down

0 comments on commit e8efce6

Please sign in to comment.