1+ from typing import Any , Dict
12from acapy_controller .controller import Controller
23import pytest
34
67
78@pytest .mark .interop
89@pytest .mark .asyncio
9- async def test_accept_credential_offer (credo : CredoWrapper , offer : str ):
10+ async def test_accept_credential_offer (credo : CredoWrapper , offer : Dict [ str , Any ] ):
1011 """Test OOB DIDExchange Protocol."""
11- await credo .openid4vci_accept_offer (offer )
12+ await credo .openid4vci_accept_offer (offer [ "offer_uri" ] )
1213
1314
1415@pytest .mark .interop
@@ -20,17 +21,22 @@ async def test_accept_credential_offer_sdjwt(credo: CredoWrapper, sdjwt_offer: s
2021
2122@pytest .mark .interop
2223@pytest .mark .asyncio
23- async def test_accept_auth_request (controller : Controller , credo : CredoWrapper , offer : str , request_uri : str ):
24+ async def test_accept_auth_request (
25+ controller : Controller , credo : CredoWrapper , offer : Dict [str , Any ], request_uri : str
26+ ):
2427 """Test OOB DIDExchange Protocol."""
25- await credo .openid4vci_accept_offer (offer )
28+ await credo .openid4vci_accept_offer (offer [ "offer_uri" ] )
2629 await credo .openid4vp_accept_request (request_uri )
2730 await controller .event_with_values ("oid4vp" , state = "presentation-valid" )
2831
2932
3033@pytest .mark .interop
3134@pytest .mark .asyncio
3235async def test_accept_sdjwt_auth_request (
33- controller : Controller , credo : CredoWrapper , sdjwt_offer : str , sdjwt_request_uri : str
36+ controller : Controller ,
37+ credo : CredoWrapper ,
38+ sdjwt_offer : str ,
39+ sdjwt_request_uri : str ,
3440):
3541 """Test OOB DIDExchange Protocol."""
3642 await credo .openid4vci_accept_offer (sdjwt_offer )
0 commit comments