Skip to content

Commit a15c75c

Browse files
committed
make pylint happy in tests
1 parent 5c84538 commit a15c75c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/unit/app/endpoints/test_query.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ def test_get_agent_cache_hit(prepare_agent_mocks):
10771077
# Set up cache with existing agent
10781078
conversation_id = "test_conversation_id"
10791079

1080-
result_agent, result_conversation_id = get_agent(
1080+
result_agent, result_conversation_id, _ = get_agent(
10811081
client=mock_client,
10821082
model_id="test_model",
10831083
system_prompt="test_prompt",
@@ -1118,7 +1118,7 @@ def test_get_agent_cache_miss_with_conversation_id(
11181118
mocker.patch("app.endpoints.query.configuration", setup_configuration)
11191119

11201120
# Call function with conversation_id but no cached agent
1121-
result_agent, result_conversation_id = get_agent(
1121+
result_agent, result_conversation_id, _ = get_agent(
11221122
client=mock_client,
11231123
model_id="test_model",
11241124
system_prompt="test_prompt",
@@ -1168,7 +1168,7 @@ def test_get_agent_no_conversation_id(setup_configuration, prepare_agent_mocks,
11681168
mocker.patch("app.endpoints.query.configuration", setup_configuration)
11691169

11701170
# Call function with None conversation_id
1171-
result_agent, result_conversation_id = get_agent(
1171+
result_agent, result_conversation_id, _ = get_agent(
11721172
client=mock_client,
11731173
model_id="test_model",
11741174
system_prompt="test_prompt",
@@ -1218,7 +1218,7 @@ def test_get_agent_empty_shields(setup_configuration, prepare_agent_mocks, mocke
12181218
mocker.patch("app.endpoints.query.configuration", setup_configuration)
12191219

12201220
# Call function with empty shields list
1221-
result_agent, result_conversation_id = get_agent(
1221+
result_agent, result_conversation_id, _ = get_agent(
12221222
client=mock_client,
12231223
model_id="test_model",
12241224
system_prompt="test_prompt",
@@ -1272,7 +1272,7 @@ def test_get_agent_multiple_mcp_servers(
12721272
mocker.patch("app.endpoints.query.configuration", setup_configuration)
12731273

12741274
# Call function
1275-
result_agent, result_conversation_id = get_agent(
1275+
result_agent, result_conversation_id, _ = get_agent(
12761276
client=mock_client,
12771277
model_id="test_model",
12781278
system_prompt="test_prompt",
@@ -1579,7 +1579,7 @@ def test_get_agent_no_tools_no_parser(setup_configuration, prepare_agent_mocks,
15791579
mocker.patch("app.endpoints.query.configuration", setup_configuration)
15801580

15811581
# Call function with no_tools=True
1582-
result_agent, result_conversation_id = get_agent(
1582+
result_agent, result_conversation_id, _ = get_agent(
15831583
client=mock_client,
15841584
model_id="test_model",
15851585
system_prompt="test_prompt",
@@ -1637,7 +1637,7 @@ def test_get_agent_no_tools_false_preserves_parser(
16371637
mocker.patch("app.endpoints.query.configuration", setup_configuration)
16381638

16391639
# Call function with no_tools=False
1640-
result_agent, result_conversation_id = get_agent(
1640+
result_agent, result_conversation_id, _ = get_agent(
16411641
client=mock_client,
16421642
model_id="test_model",
16431643
system_prompt="test_prompt",

0 commit comments

Comments
 (0)