@@ -15,7 +15,7 @@ async def test_continue_conversation_with_topic(client, test_graph):
1515 # We can use the test_graph fixture which already has relevant content
1616
1717 # Call the function with a topic that should match existing content
18- result = await continue_conversation (topic = "Root" , timeframe = "1w" )
18+ result = await continue_conversation . fn (topic = "Root" , timeframe = "1w" )
1919
2020 # Check that the result contains expected content
2121 assert "Continuing conversation on: Root" in result
@@ -27,7 +27,7 @@ async def test_continue_conversation_with_topic(client, test_graph):
2727async def test_continue_conversation_with_recent_activity (client , test_graph ):
2828 """Test continue_conversation with no topic, using recent activity."""
2929 # Call the function without a topic
30- result = await continue_conversation (timeframe = "1w" )
30+ result = await continue_conversation . fn (timeframe = "1w" )
3131
3232 # Check that the result contains expected content for recent activity
3333 assert "Continuing conversation on: Recent Activity" in result
@@ -40,7 +40,7 @@ async def test_continue_conversation_with_recent_activity(client, test_graph):
4040async def test_continue_conversation_no_results (client ):
4141 """Test continue_conversation when no results are found."""
4242 # Call with a non-existent topic
43- result = await continue_conversation (topic = "NonExistentTopic" , timeframe = "1w" )
43+ result = await continue_conversation . fn (topic = "NonExistentTopic" , timeframe = "1w" )
4444
4545 # Check the response indicates no results found
4646 assert "Continuing conversation on: NonExistentTopic" in result
@@ -51,7 +51,7 @@ async def test_continue_conversation_no_results(client):
5151async def test_continue_conversation_creates_structured_suggestions (client , test_graph ):
5252 """Test that continue_conversation generates structured tool usage suggestions."""
5353 # Call the function with a topic that should match existing content
54- result = await continue_conversation (topic = "Root" , timeframe = "1w" )
54+ result = await continue_conversation . fn (topic = "Root" , timeframe = "1w" )
5555
5656 # Verify the response includes clear tool usage instructions
5757 assert "start by executing one of the suggested commands" in result .lower ()
@@ -69,7 +69,7 @@ async def test_continue_conversation_creates_structured_suggestions(client, test
6969async def test_search_prompt_with_results (client , test_graph ):
7070 """Test search_prompt with a query that returns results."""
7171 # Call the function with a query that should match existing content
72- result = await search_prompt ("Root" )
72+ result = await search_prompt . fn ("Root" )
7373
7474 # Check the response contains expected content
7575 assert 'Search Results for: "Root"' in result
@@ -82,7 +82,7 @@ async def test_search_prompt_with_results(client, test_graph):
8282async def test_search_prompt_with_timeframe (client , test_graph ):
8383 """Test search_prompt with a timeframe."""
8484 # Call the function with a query and timeframe
85- result = await search_prompt ("Root" , timeframe = "1w" )
85+ result = await search_prompt . fn ("Root" , timeframe = "1w" )
8686
8787 # Check the response includes timeframe information
8888 assert 'Search Results for: "Root" (after 7d)' in result
@@ -93,7 +93,7 @@ async def test_search_prompt_with_timeframe(client, test_graph):
9393async def test_search_prompt_no_results (client ):
9494 """Test search_prompt when no results are found."""
9595 # Call with a query that won't match anything
96- result = await search_prompt ("XYZ123NonExistentQuery" )
96+ result = await search_prompt . fn ("XYZ123NonExistentQuery" )
9797
9898 # Check the response indicates no results found
9999 assert 'Search Results for: "XYZ123NonExistentQuery"' in result
@@ -149,7 +149,7 @@ def test_prompt_context_with_file_path_no_permalink():
149149async def test_recent_activity_prompt (client , test_graph ):
150150 """Test recent_activity_prompt."""
151151 # Call the function
152- result = await recent_activity_prompt (timeframe = "1w" )
152+ result = await recent_activity_prompt . fn (timeframe = "1w" )
153153
154154 # Check the response contains expected content
155155 assert "Recent Activity" in result
@@ -161,7 +161,7 @@ async def test_recent_activity_prompt(client, test_graph):
161161async def test_recent_activity_prompt_with_custom_timeframe (client , test_graph ):
162162 """Test recent_activity_prompt with custom timeframe."""
163163 # Call the function with a custom timeframe
164- result = await recent_activity_prompt (timeframe = "1d" )
164+ result = await recent_activity_prompt . fn (timeframe = "1d" )
165165
166166 # Check the response includes the custom timeframe
167167 assert "Recent Activity from (1d)" in result
0 commit comments