Skip to content

Commit 03f05f2

Browse files
fix: openid4vci, test import and patch package
(view: 444#discussion_r2171249896, #85a0618a)
1 parent c4b0b81 commit 03f05f2

6 files changed

Lines changed: 6 additions & 5 deletions

File tree

example/satosa/openid4vci_frontend.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ config:
55

66
endpoints:
77
par:
8-
module: pyeudiw.openid4vci.endpoints.pushed_authorization_request_endpoint
8+
module: pyeudiw.satosa.frontends.openid4vci.endpoints.pushed_authorization_request_endpoint
99
class: ParHandler
1010
path: '/par'
1111
credential_offer:

pyeudiw/tests/satosa/frontends/openid4vci/endpoints/test_credential_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def request_with_open_id_credential():
7171

7272
@pytest.fixture
7373
def credential_handler() -> CredentialHandler:
74-
with patch("pyeudiw.openid4vci.endpoints.base_credential_endpoint.UserCredentialEngine") as user_cred_eng_class:
74+
with patch("pyeudiw.satosa.frontends.openid4vci.endpoints.base_credential_endpoint.UserCredentialEngine") as user_cred_eng_class:
7575
usc_mock_engine = MagicMock()
7676
usc_mock_engine.db_user_storage_engine = MagicMock()
7777
usc_mock_engine.db_credential_storage_engine = MagicMock()

pyeudiw/tests/satosa/frontends/openid4vci/endpoints/test_credential_offer_qrcode_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
@pytest.fixture
2828
def credential_offer_qrcode_handler() -> CredentialOfferQrCodeHandler:
29-
with patch("pyeudiw.openid4vci.endpoints.credential_offer_qrcode_endpoint.Jinja2TemplateHandler") as MockTemplateHandler:
29+
with patch("pyeudiw.satosa.frontends.openid4vci.endpoints.credential_offer_qrcode_endpoint.Jinja2TemplateHandler") as MockTemplateHandler:
3030
return CredentialOfferQrCodeHandler(MOCK_PYEUDIW_FRONTEND_CONFIG, MOCK_INTERNAL_ATTRIBUTES, MOCK_BASE_URL, MOCK_NAME)
3131

3232
@pytest.fixture

pyeudiw/tests/satosa/frontends/openid4vci/endpoints/test_pushed_authorization_request_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"client_id": _MOCK_VALID_THUMBPRINT
4343
}
4444

45-
_PAR_VALIDATE_OAUTH_CLIENT_ATTESTATION_TARGET = "pyeudiw.openid4vci.endpoints.pushed_authorization_request_endpoint.validate_oauth_client_attestation"
45+
_PAR_VALIDATE_OAUTH_CLIENT_ATTESTATION_TARGET = "pyeudiw.satosa.frontends.openid4vci.endpoints.pushed_authorization_request_endpoint.validate_oauth_client_attestation"
4646

4747
_MOCK_REQUEST_DESERIALIZED = {
4848
"iss": _MOCK_VALID_THUMBPRINT,

pyeudiw/tests/satosa/frontends/openid4vci/endpoints/test_status_list_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
ACCEPT_HEADER
3131
)
3232

33-
_BASE_PATH = "pyeudiw.openid4vci.endpoints.status_list_endpoint"
33+
_BASE_PATH = "pyeudiw.satosa.frontends.openid4vci.endpoints.status_list_endpoint"
3434

3535
@pytest.fixture
3636
def status_list_handler() -> StatusListHandler:

pyeudiw/tests/satosa/frontends/openid4vci/models/test_par_request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
ENDPOINT_CTX,
1313
ENTITY_ID_CTX
1414
)
15+
from pyeudiw.satosa.frontends.openid4vci.models.par_request import ParRequest
1516
from pyeudiw.satosa.frontends.openid4vci.tools.exceptions import InvalidRequestException
1617
from pyeudiw.tests.satosa.frontends.openid4vci.mock_openid4vci import MOCK_PYEUDIW_FRONTEND_CONFIG
1718

0 commit comments

Comments
 (0)