Skip to content

Commit

Permalink
upgrade libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
pachCode committed Jun 19, 2024
1 parent 67e4b41 commit 70e47ac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions examples/resources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ def health_auth_check() -> Dict:
return dict(greeting="I'm authenticated and healthy !!!")


@app.get('/raise_cuenca_errors')
@app.get('/raise_cuenca_errors', response_model=None)
def raise_cuenca_errors() -> NoReturn:
raise WrongCredsError('you are not lucky enough!')


@app.get('/raise_fast_agave_errors')
@app.get('/raise_fast_agave_errors', response_model=None)
def raise_fast_agave_errors() -> NoReturn:
raise UnauthorizedError('nice try!')

Expand Down
3 changes: 2 additions & 1 deletion examples/resources/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ async def update(
user: UserModel, request: UserUpdateRequest, api_request: Request
) -> Response:
user.name = request.name
user.ip = api_request.client.host
if api_request.client is not None:
user.ip = api_request.client.host
await user.async_save()
return Response(content=user.to_dict(), status_code=200)
6 changes: 3 additions & 3 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ flake8==4.0.*
isort==5.10.*
mock==4.0.3
mongomock==4.1.*
moto[server]==2.2.*
moto[server]==5.0.9
mypy==1.0.1
pytest==7.4.*
pytest-cov==4.1.*
pytest-vcr==1.0.*
pytest-asyncio==0.15.*
requests==2.28.*
boto3==1.20.24
botocore==1.23.24
boto3==1.34.106
botocore==1.34.106
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aiobotocore==2.1.0
cuenca-validations==0.11.19
fastapi==0.68.2
mongoengine-plus==0.0.3
python-multipart==0.0.5
aiobotocore==2.13.0
cuenca-validations==0.11.29
fastapi==0.111.0
mongoengine-plus==0.2.2
python-multipart==0.0.9
starlette-context==0.3.3
types-aiobotocore-sqs==2.1.0.post1

0 comments on commit 70e47ac

Please sign in to comment.