Skip to content

Commit

Permalink
fix(app/auth): object keys should be strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Sep 3, 2023
1 parent 0e9a6a5 commit 2c2779d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/auth/innopolis.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def innopolis_callback(
error = request.query_params.get("error")
if error:
description = request.query_params.get("error_description")
return JSONResponse(status_code=403, content={error: error, description: description})
return JSONResponse(status_code=403, content={"error": error, "description": description})

try:
token = await oauth.innopolis.authorize_access_token(request)
Expand Down

1 comment on commit 2c2779d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src
   exceptions.py35683%11, 28, 42, 56, 84, 98
   main.py884549%82–151, 156–157, 162–165, 175
src/app
   dependencies.py47296%29, 37
src/app/auth
   common.py281739%12–21, 25–32, 36–44, 49–50
   dependencies.py16662%33–38, 42
   jwt.py513433%26–28, 32–36, 40–44, 48–53, 57–70, 74–81
src/app/event_groups
   routes.py723946%39–45, 65–76, 116–120, 140, 186–225
src/app/ics
   routes.py594229%34–43, 49–75, 95–118
src/app/users
   routes.py251348%32–34, 54–59, 78–80, 102–107
src/app/workshops
   __init__.py550%1–9
   routes.py16160%1–63
src/repositories
   crud.py941287%89, 105, 108, 125, 142, 156–157, 171–180
src/repositories/event_groups
   repository.py58591%57–58, 65–68
src/repositories/predefined
   repository.py1517054%26, 34, 56, 64, 73, 76–84, 97–99, 103–108, 119–123, 127–130, 133, 136, 139, 147–158, 162–171, 175–205
src/repositories/workshops
   __init__.py330%1–4
   abc.py440%1–10
   repository.py34340%1–68
src/schemas
   events.py71692%48, 56, 79, 98–100
   tags.py40198%36
   workshops.py58580%1–85
TOTAL159641874% 

Tests Skipped Failures Errors Time
53 0 💤 1 ❌ 1 🔥 13.807s ⏱️

Please sign in to comment.