@@ -60,7 +60,7 @@ def test_graphrag_happy_path(
6060 )
6161
6262 llm .invoke .assert_called_once_with (
63- """Context:
63+ input = """Context:
6464<Record node={'question': 'In 1953 Watson & Crick built a model of the molecular structure of this, the gene-carrying substance'}>
6565<Record node={'question': 'This organ removes excess glucose from the blood & stores it as glycogen'}>
6666
@@ -72,7 +72,7 @@ def test_graphrag_happy_path(
7272
7373Answer:
7474""" ,
75- None ,
75+ message_history = None ,
7676 system_instruction = "Answer the user question using the provided context." ,
7777 )
7878 assert isinstance (result , RagResultModel )
@@ -152,8 +152,8 @@ def test_graphrag_happy_path_with_neo4j_message_history(
152152 system_instruction = first_invocation_system_instruction ,
153153 ),
154154 call (
155- second_invocation ,
156- message_history .messages ,
155+ input = second_invocation ,
156+ message_history = message_history .messages ,
157157 system_instruction = "Answer the user question using the provided context." ,
158158 ),
159159 ]
@@ -190,7 +190,7 @@ def test_graphrag_happy_path_return_context(
190190 )
191191
192192 llm .invoke .assert_called_once_with (
193- """Context:
193+ input = """Context:
194194<Record node={'question': 'In 1953 Watson & Crick built a model of the molecular structure of this, the gene-carrying substance'}>
195195<Record node={'question': 'This organ removes excess glucose from the blood & stores it as glycogen'}>
196196
@@ -202,7 +202,7 @@ def test_graphrag_happy_path_return_context(
202202
203203Answer:
204204""" ,
205- None ,
205+ message_history = None ,
206206 system_instruction = "Answer the user question using the provided context." ,
207207 )
208208 assert isinstance (result , RagResultModel )
@@ -236,7 +236,7 @@ def test_graphrag_happy_path_examples(
236236 )
237237
238238 llm .invoke .assert_called_once_with (
239- """Context:
239+ input = """Context:
240240<Record node={'question': 'In 1953 Watson & Crick built a model of the molecular structure of this, the gene-carrying substance'}>
241241<Record node={'question': 'This organ removes excess glucose from the blood & stores it as glycogen'}>
242242
@@ -248,7 +248,7 @@ def test_graphrag_happy_path_examples(
248248
249249Answer:
250250""" ,
251- None ,
251+ message_history = None ,
252252 system_instruction = "Answer the user question using the provided context." ,
253253 )
254254 assert result .answer == "some text"
0 commit comments