Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelauv committed Sep 25, 2023
1 parent 521a354 commit d465063
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/test_filter_pydantic_sub_model_pv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@pytest.fixture(name="client")
def get_client():
from pydantic import BaseModel, FieldValidationInfo, field_validator
from pydantic import BaseModel, ValidationInfo, field_validator

app = FastAPI()

Expand All @@ -28,7 +28,7 @@ class ModelA(BaseModel):
foo: ModelB

@field_validator("name")
def lower_username(cls, name: str, info: FieldValidationInfo):
def lower_username(cls, name: str, info: ValidationInfo):
if not name.endswith("A"):
raise ValueError("name must end in A")
return name
Expand Down
10 changes: 5 additions & 5 deletions tests/test_orjson_response_class.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from fastapi import FastAPI
from fastapi.responses import ORJSONResponse
from fastapi.testclient import TestClient

# from fastapi import FastAPI
# from fastapi.responses import ORJSONResponse
# from fastapi.testclient import TestClient
#
# app = FastAPI(default_response_class=ORJSONResponse)
#
#
Expand All @@ -13,7 +13,7 @@
# @app.get("/orjson_non_str_keys")
# def get_orjson_non_str_keys():
# return {A(): "Hello World", 1: 1}

#
#
# client = TestClient(app)
#
Expand Down

0 comments on commit d465063

Please sign in to comment.