77from agentcore_rl_toolkit import AgentCoreRLApp
88
99
10- class MockAgentCoreRLApp (AgentCoreRLApp ):
11- """Minimal concrete implementation for testing."""
12-
13- def create_openai_compatible_model (self , ** kwargs ):
14- return None
15-
16-
1710def test_wrapper_signature_has_context ():
1811 """Test that the wrapper's signature includes (payload, context) for BedrockAgentCoreApp."""
19- app = MockAgentCoreRLApp ()
12+ app = AgentCoreRLApp ()
2013
2114 @app .rollout_entrypoint
2215 async def my_handler (payload : dict ):
@@ -32,7 +25,7 @@ async def my_handler(payload: dict):
3225
3326def test_wrapper_preserves_function_name ():
3427 """Test that @wraps preserves the original function name."""
35- app = MockAgentCoreRLApp ()
28+ app = AgentCoreRLApp ()
3629
3730 @app .rollout_entrypoint
3831 async def my_custom_handler (payload : dict ):
@@ -44,7 +37,7 @@ async def my_custom_handler(payload: dict):
4437
4538def test_entrypoint_with_payload_only ():
4639 """Test that user function with signature (payload) works."""
47- app = MockAgentCoreRLApp ()
40+ app = AgentCoreRLApp ()
4841
4942 @app .rollout_entrypoint
5043 async def handler (payload : dict ):
@@ -59,7 +52,7 @@ async def handler(payload: dict):
5952
6053def test_entrypoint_with_payload_and_context ():
6154 """Test that user function with signature (payload, context) works."""
62- app = MockAgentCoreRLApp ()
55+ app = AgentCoreRLApp ()
6356
6457 @app .rollout_entrypoint
6558 async def handler (payload : dict , context ):
@@ -78,7 +71,7 @@ async def handler(payload: dict, context):
7871
7972def test_entrypoint_with_sync_handler ():
8073 """Test that sync user function works."""
81- app = MockAgentCoreRLApp ()
74+ app = AgentCoreRLApp ()
8275
8376 @app .rollout_entrypoint
8477 def handler (payload : dict ):
0 commit comments