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 b5d9e61 commit 50e1ca5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ email_validator >=1.1.1,<3.0.0
dirty-equals ==0.6.0
# TODO: once removing databases from tutorial, upgrade SQLAlchemy
# probably when including SQLModel
sqlalchemy >=1.3.18,<1.4.43
sqlalchemy >=1.4.49,<1.5.0
databases[sqlite] >=0.3.2,<0.7.0
orjson >=3.2.1,<4.0.0
ujson >=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,<6.0.0
Expand Down
20 changes: 10 additions & 10 deletions tests/test_orjson_response_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
from fastapi.testclient import TestClient

app = FastAPI(default_response_class=ORJSONResponse)


class A:
def __str__(self):
return "msg"


@app.get("/orjson_non_str_keys")
def get_orjson_non_str_keys():
return {A(): "Hello World", 1: 1}
#
#
# class A:
# def __str__(self):
# return "msg"
#
#
# @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 50e1ca5

Please sign in to comment.