Skip to content

Commit 0f5e3e3

Browse files
mepeltierdbluhm
authored andcommitted
fix(oid4vc): interop test fixes
Signed-off-by: Micah Peltier <micah6_8@yahoo.com>
1 parent e9b257c commit 0f5e3e3

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

oid4vc/integration/tests/test_interop/test_credo.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import Any, Dict
12
from acapy_controller.controller import Controller
23
import pytest
34

@@ -6,9 +7,9 @@
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
3235
async 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)

oid4vc/integration/tests/test_interop/test_sphereon.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import Any, Dict
12
import pytest
23

34
from sphereon_wrapper import SphereaonWrapper
@@ -16,6 +17,6 @@ async def test_api(sphereon: SphereaonWrapper):
1617

1718
@pytest.mark.interop
1819
@pytest.mark.asyncio
19-
async def test_sphereon_pre_auth(sphereon: SphereaonWrapper, offer: str):
20+
async def test_sphereon_pre_auth(sphereon: SphereaonWrapper, offer: Dict[str, Any]):
2021
"""Test receive offer for pre auth code flow."""
21-
await sphereon.accept_credential_offer(offer)
22+
await sphereon.accept_credential_offer(offer["offer_uri"])

0 commit comments

Comments
 (0)