Skip to content

Commit 79136a7

Browse files
committed
fix lint
1 parent 0e859ba commit 79136a7

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

tests/test_mcp_server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,9 @@ def test_search_performance(self, indexed_api):
978978

979979
# Verify search returns valid results (state-based assertions)
980980
assert isinstance(results, list), "Search should return a list of results"
981-
assert len(results) > 0, "Search should find results for 'function definition' in indexed codebase"
981+
assert (
982+
len(results) > 0
983+
), "Search should find results for 'function definition' in indexed codebase"
982984

983985
# Verify result structure
984986
for result in results:

tests/test_request_during_model_loading.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ def init_api_delayed():
290290
init_thread.start()
291291

292292
# Verify API is not initialized yet (state assertion)
293-
assert mcp_mod.api is None, "API should not be initialized at test start"
293+
assert (
294+
mcp_mod.api is None
295+
), "API should not be initialized at test start"
294296

295297
# Call tool - should wait for API to initialize
296298
result = await call_tool(
@@ -304,13 +306,18 @@ def init_api_delayed():
304306
# State-based assertions: verify the waiting behavior through outcomes
305307
# 1. Tool should have succeeded (not returned initialization error)
306308
assert len(result) == 1, "Tool should return exactly one result"
307-
assert "not initialized" not in result[0].text.lower(), \
308-
"Tool should not return 'not initialized' error - call_tool should have waited"
309+
assert (
310+
"not initialized" not in result[0].text.lower()
311+
), "Tool should not return 'not initialized' error - call_tool should have waited"
309312

310313
# 2. API should now be initialized (after call_tool returns)
311-
assert mcp_mod.api is not None, "API should be initialized after call_tool returns"
314+
assert (
315+
mcp_mod.api is not None
316+
), "API should be initialized after call_tool returns"
312317

313-
print("✓ call_tool correctly waited for API initialization and succeeded")
318+
print(
319+
"✓ call_tool correctly waited for API initialization and succeeded"
320+
)
314321

315322
# Cleanup
316323
init_thread.join()

0 commit comments

Comments
 (0)