Skip to content

Commit

Permalink
🎨 Filter Pydantic UserWarning in test
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Nov 14, 2024
1 parent 70364a4 commit 6f967c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acapy_agent/connections/tests/test_base_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from unittest import IsolatedAsyncioTestCase
from unittest.mock import call

import pytest
from pydid import DID, DIDDocument, DIDDocumentBuilder
from pydid.doc.builder import ServiceBuilder
from pydid.verification_method import (
Expand All @@ -27,9 +28,7 @@
from ...protocols.connections.v1_0.messages.connection_invitation import (
ConnectionInvitation,
)
from ...protocols.coordinate_mediation.v1_0.models.mediation_record import (
MediationRecord,
)
from ...protocols.coordinate_mediation.v1_0.models.mediation_record import MediationRecord
from ...protocols.coordinate_mediation.v1_0.route_manager import (
CoordinateMediationV1RouteManager,
RouteManager,
Expand Down Expand Up @@ -1065,6 +1064,7 @@ async def test_resolve_connection_targets_x_bad_key_material(self):
await self.manager.resolve_connection_targets(did)
assert "not supported" in str(cm.exception)

@pytest.mark.filterwarnings("ignore::UserWarning")
async def test_resolve_connection_targets_x_unsupported_key(self):
did = "did:sov:" + self.test_did
doc_builder = DIDDocumentBuilder(did)
Expand Down

0 comments on commit 6f967c6

Please sign in to comment.