@@ -77,7 +77,7 @@ def test_refresh_with_id(self, agent_task, mock_agents_api):
77
77
78
78
# Verify API was called with correct params
79
79
mock_agents_api .get_agent_run_v1_organizations_org_id_agent_run_agent_run_id_get .assert_called_once_with (
80
- agent_run_id = " 123" , # Use string ID as stored in agent_task.id
80
+ agent_run_id = 123 , # Use string ID as stored in agent_task.id
81
81
org_id = 42 ,
82
82
authorization = "Bearer test-token"
83
83
)
@@ -220,7 +220,7 @@ class TestAgentIntegration:
220
220
def mock_response (self ):
221
221
"""Create a mock response for API calls"""
222
222
mock_response = MagicMock () # Remove spec=AgentRunResponse
223
- mock_response .id = " 987"
223
+ mock_response .id = 987
224
224
mock_response .status = "running"
225
225
mock_response .result = None
226
226
mock_response .web_url = "https://example.com/run/987"
@@ -230,7 +230,7 @@ def mock_response(self):
230
230
def mock_updated_response (self ):
231
231
"""Create a mock updated response for API calls"""
232
232
mock_updated = {
233
- "id" : " 987" ,
233
+ "id" : 987 ,
234
234
"status" : "completed" ,
235
235
"result" : {"output" : "Task completed successfully" },
236
236
"web_url" : "https://example.com/run/987"
@@ -266,7 +266,7 @@ def test_full_workflow(self, mock_response, mock_updated_response):
266
266
job = agent .run ("Execute this instruction" )
267
267
268
268
# Verify job properties
269
- assert job .id == " 987"
269
+ assert job .id == 987
270
270
assert job .status == "running"
271
271
assert job .result is None
272
272
@@ -275,14 +275,14 @@ def test_full_workflow(self, mock_response, mock_updated_response):
275
275
276
276
# Verify API calls
277
277
mock_agents_api .get_agent_run_v1_organizations_org_id_agent_run_agent_run_id_get .assert_called_once_with (
278
- agent_run_id = " 987" , # Use string ID
278
+ agent_run_id = 987 ,
279
279
org_id = 123 ,
280
280
authorization = "Bearer test-token"
281
281
)
282
282
283
283
# Verify status
284
284
assert isinstance (status , dict )
285
- assert status ["id" ] == " 987"
285
+ assert status ["id" ] == 987
286
286
assert status ["status" ] == "completed"
287
287
assert status ["result" ] == {"output" : "Task completed successfully" }
288
288
assert status ["web_url" ] == "https://example.com/run/987"
0 commit comments