Skip to content

Commit

Permalink
fix unit test for reading did document
Browse files Browse the repository at this point in the history
Signed-off-by: pstlouis <[email protected]>
  • Loading branch information
PatStLouis committed Jan 9, 2025
1 parent c225980 commit 92a7229
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/tests/test_core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from app.routers.identifiers import request_did
from app.routers.resolvers import get_did_document
from app.routers.identifiers import request_did, read_did
from app.plugins import AskarStorage, AskarVerifier, DidWebVH
from datetime import datetime, timezone
from tests.fixtures import (
Expand Down Expand Up @@ -62,7 +61,7 @@ async def test_register_did():

@pytest.mark.asyncio
async def test_resolve_did():
did_doc = await get_did_document(TEST_DID_NAMESPACE, TEST_DID_IDENTIFIER)
did_doc = await read_did(TEST_DID_NAMESPACE, TEST_DID_IDENTIFIER)
did_doc = json.loads(did_doc.body.decode())
assert did_doc == TEST_DID_DOCUMENT
assert did_doc.get('id') == TEST_DID
Expand Down

0 comments on commit 92a7229

Please sign in to comment.