Skip to content

Commit 995413d

Browse files
michael.yakmichaelyaakoby
authored andcommitted
Update FastAPI and Uvicorn to recommended version
1 parent fe69ab2 commit 995413d

File tree

4 files changed

+48
-25
lines changed

4 files changed

+48
-25
lines changed

.github/workflows/python_package_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
REDIS_HOST: redis
1818

1919
services:
20-
# User a redis container for testing the redis health-provider
20+
# Use a redis container for testing the redis health-provider
2121
redis:
2222
image: redis:5.0.3
2323

poetry.lock

Lines changed: 43 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ classifiers = [
3737
python = "^3.9"
3838
psutil = { version = "^5.6", optional = true }
3939
flask = { version = "^2.3.0", optional = true }
40-
fastapi = { version = "^0.92.0", optional = true }
41-
uvicorn = { version = "^0.20.0", optional = true }
40+
fastapi = { version = "^0.100.1", optional = true }
41+
uvicorn = { version = "^0.23.0", optional = true }
4242
sqlalchemy = {version = "^2.0.4", optional = true}
4343
PyMySQL = {version = "^1.0.2", optional = true}
4444
cryptography = {version = ">=39.0.1,<40.0.0", optional = true}

tests/test_pyctuator_e2e.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,9 @@ def test_traces_endpoint(endpoints: Endpoints) -> None:
317317
auth_header = "Authorization" if "Authorization" in trace[
318318
"request"]["headers"] else "authorization"
319319
assert trace["request"]["headers"][auth_header][0] == "******"
320+
320321
# Assert timestamp is formatted in ISO format
322+
logging.info("Trace's timestamp is " + trace["timestamp"])
321323
datetime.fromisoformat(trace["timestamp"])
322324

323325
# Assert that the "time taken" (i.e. the time the server spent processing the request) is less than 100ms

0 commit comments

Comments
 (0)