diff --git a/tests/holder/test_events.py b/tests/holder/test_events.py index 28e1e73b..104bf672 100644 --- a/tests/holder/test_events.py +++ b/tests/holder/test_events.py @@ -121,7 +121,14 @@ async def test_pres_req_received_sent_on_state(profile, mock_send_to_admins): state = V10PresentationExchange.STATE_REQUEST_RECEIVED message = test_module.PresRequestReceived event = Event( - "anything", {"state": state, "presentation_request": {"pres_request": "test"}} + "anything", + { + "state": state, + "presentation_request": { + "requested_attributes": {}, + "requested_predicates": {}, + }, + }, ) with mock.patch.object( message, "retrieve_matching_credentials", mock.CoroutineMock() diff --git a/tests/issuer/test_request_pres.py b/tests/issuer/test_request_pres.py index 30c26c9f..a87309a1 100644 --- a/tests/issuer/test_request_pres.py +++ b/tests/issuer/test_request_pres.py @@ -21,7 +21,11 @@ def message(): """Message fixture.""" yield RequestPres( - connection_id=TEST_CONN_ID, proof_request=IndyProofRequest(), comment="comment" + connection_id=TEST_CONN_ID, + proof_request=IndyProofRequest( + requested_attributes={}, requested_predicates={} + ), + comment="comment", )