Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rv0lt committed Nov 13, 2024
1 parent 438082a commit cf8d4f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dds_web/api/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ def get(self):
"""Get private key from database."""
# Verify project ID and access
project = project_schemas.ProjectRequiredSchema().load(flask.request.args)
dds_web.utils.verify_project_user_key(project=project)
flask.current_app.logger.debug("Getting the private key.")

return flask.jsonify(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_verify_project_user_key_denied(client: flask.testing.FlaskClient) -> No
# Verify project access -- not ok
with pytest.raises(AccessDeniedError) as err:
utils.verify_project_user_key(project=project)
assert "There is no entry in the projectUserKeys table for the user and project" in str(
assert "Access to all active projects has been lost, probably due to password reset" in str(
err.value
)

Expand Down

0 comments on commit cf8d4f8

Please sign in to comment.