Skip to content

Commit bc519ce

Browse files
Merge pull request openwallet-foundation#1120 from sklump/accommodate-no-body-in-issue-cred-bound-offer
allow for no body
2 parents 2651546 + 991d0b5 commit bc519ce

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

aries_cloudagent/protocols/coordinate_mediation/v1_0/handlers/tests/test_mediation_request_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def setUp(self):
2828
self.context.connection_record = ConnRecord(connection_id=TEST_CONN_ID)
2929

3030
async def test_handler_no_active_connection(self):
31-
""" test mediation handler """
31+
"""test mediation handler"""
3232
handler, responder = MediationRequestHandler(), MockResponder()
3333
self.context.connection_ready = False
3434
with pytest.raises(HandlerException) as exc:

aries_cloudagent/protocols/issue_credential/v1_0/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ async def credential_exchange_send_bound_offer(request: web.BaseRequest):
867867
context: AdminRequestContext = request["context"]
868868
outbound_handler = request["outbound_message_router"]
869869

870-
body = await request.json()
870+
body = await request.json() if request.body_exists else {}
871871
proposal_spec = body.get("counter_proposal")
872872

873873
credential_exchange_id = request.match_info["cred_ex_id"]

aries_cloudagent/protocols/issue_credential/v2_0/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ async def credential_exchange_send_bound_offer(request: web.BaseRequest):
957957
context: AdminRequestContext = request["context"]
958958
outbound_handler = request["outbound_message_router"]
959959

960-
body = await request.json()
960+
body = await request.json() if request.body_exists else {}
961961
filt_spec = body.get("filter")
962962
preview_spec = body.get("counter_preview")
963963

aries_cloudagent/wallet/tests/test_indy_wallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ async def test_pack_message_x(self, wallet):
222222

223223
@pytest.mark.indy
224224
class TestWalletCompat:
225-
""" Tests for wallet compatibility."""
225+
"""Tests for wallet compatibility."""
226226

227227
test_seed = "testseed000000000000000000000001"
228228
test_did = "55GkHamhTU1ZbTbV2ab9DE"

0 commit comments

Comments
 (0)