diff --git a/acapy_agent/core/tests/test_plugin_registry.py b/acapy_agent/core/tests/test_plugin_registry.py index b5727a4546..6c47ffd434 100644 --- a/acapy_agent/core/tests/test_plugin_registry.py +++ b/acapy_agent/core/tests/test_plugin_registry.py @@ -11,6 +11,7 @@ from ..goal_code_registry import GoalCodeRegistry from ..plugin_registry import PluginRegistry from ..protocol_registry import ProtocolRegistry +from ...didcomm_v2.protocol_registry import V2ProtocolRegistry class TestPluginRegistry(IsolatedAsyncioTestCase): @@ -27,6 +28,7 @@ def setUp(self): register_controllers=mock.MagicMock(), ) self.context.injector.bind_instance(ProtocolRegistry, self.proto_registry) + self.context.injector.bind_instance(V2ProtocolRegistry, V2ProtocolRegistry()) self.context.injector.bind_instance(GoalCodeRegistry, self.goal_code_registry) async def test_setup(self): diff --git a/acapy_agent/protocols_v2/basicmessage/v1_0/message_types.py b/acapy_agent/protocols_v2/basicmessage/v1_0/message_types.py index 6fc13c7682..8f3bf4a23d 100644 --- a/acapy_agent/protocols_v2/basicmessage/v1_0/message_types.py +++ b/acapy_agent/protocols_v2/basicmessage/v1_0/message_types.py @@ -14,6 +14,7 @@ class basic_message: """Basic Message 2.0 DIDComm V2 Protocol.""" + async def __call__(self, *args, **kwargs): """Call the Handler.""" await self.handle(*args, **kwargs) diff --git a/acapy_agent/protocols_v2/discovery/v1_0/message_types.py b/acapy_agent/protocols_v2/discovery/v1_0/message_types.py index 527e2d09db..49e8d398c1 100644 --- a/acapy_agent/protocols_v2/discovery/v1_0/message_types.py +++ b/acapy_agent/protocols_v2/discovery/v1_0/message_types.py @@ -19,6 +19,7 @@ class discover_features: """Discover Features 2.0 DIDComm V2 Protocol.""" + async def __call__(self, *args, **kwargs): """Call the Handler.""" await self.handle(*args, **kwargs) diff --git a/acapy_agent/protocols_v2/empty/v1_0/message_types.py b/acapy_agent/protocols_v2/empty/v1_0/message_types.py index aa8fd62e99..11d71fa995 100644 --- a/acapy_agent/protocols_v2/empty/v1_0/message_types.py +++ b/acapy_agent/protocols_v2/empty/v1_0/message_types.py @@ -13,6 +13,7 @@ class basic_message: """Empty 1.0 DIDComm V2 Protocol.""" + async def __call__(self, *args, **kwargs): """Call the Handler.""" await self.handle(*args, **kwargs) diff --git a/acapy_agent/protocols_v2/trustping/v1_0/message_types.py b/acapy_agent/protocols_v2/trustping/v1_0/message_types.py index 9251bd447b..0b55852353 100644 --- a/acapy_agent/protocols_v2/trustping/v1_0/message_types.py +++ b/acapy_agent/protocols_v2/trustping/v1_0/message_types.py @@ -15,6 +15,7 @@ class trust_ping: """Trust Ping 2.0 DIDComm V2 Protocol.""" + async def __call__(self, *args, **kwargs): """Call the Handler.""" await self.handle(*args, **kwargs)