Skip to content

Commit

Permalink
style: black formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Dec 21, 2021
1 parent aee9c21 commit f7ab1e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aries_cloudagent/protocols/connections/v1_0/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ async def connections_list(request: web.BaseRequest):
"my_did",
"their_did",
"request_id",
"invitation_key"
"invitation_key",
):
if param_name in request.query and request.query[param_name] != "":
tag_filter[param_name] = request.query[param_name]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def test_connections_list(self):
"invitation_id": "dummy", # exercise tag filter assignment
"their_role": ConnRecord.Role.REQUESTER.rfc160,
"connection_protocol": ConnRecord.Protocol.RFC_0160.aries_protocol,
"invitation_key": "some-invitation-key"
"invitation_key": "some-invitation-key",
}

STATE_COMPLETED = ConnRecord.State.COMPLETED
Expand Down Expand Up @@ -89,15 +89,12 @@ async def test_connections_list(self):
await test_module.connections_list(self.request)
mock_conn_rec.query.assert_called_once_with(
ANY,
{
"invitation_id": "dummy",
"invitation_key": "some-invitation-key"
},
{"invitation_id": "dummy", "invitation_key": "some-invitation-key"},
post_filter_positive={
"their_role": [v for v in ConnRecord.Role.REQUESTER.value],
"connection_protocol": ConnRecord.Protocol.RFC_0160.aries_protocol,
},
alt=True
alt=True,
)
mock_response.assert_called_once_with(
{
Expand Down

0 comments on commit f7ab1e0

Please sign in to comment.