2323
2424log = get_logger ()
2525
26- pytestmark = pytest .mark .skip ("Not relevant to test this currently." )
27-
2826
2927@pytest .mark .parametrize (
3028 "neo4j_image, neo4j_runtime" ,
4341 ),
4442 ],
4543)
46- async def test_query_persons (neo4j_image : str , neo4j_runtime : Neo4jRuntime , car_person_schema_root ):
44+ async def test_query_persons (query_analyzer , neo4j_image : str , neo4j_runtime : Neo4jRuntime , car_person_schema_root ):
4745 queries_names_to_config = {
4846 NodeGetListQuery .name : QueryConfig (neo4j_runtime = neo4j_runtime ),
4947 NodeListGetAttributeQuery .name : QueryConfig (neo4j_runtime = neo4j_runtime ),
5048 NodeListGetInfoQuery .name : QueryConfig (neo4j_runtime = neo4j_runtime ),
5149 }
5250 db_profiling_queries , default_branch = await start_db_and_create_default_branch (
53- neo4j_image = neo4j_image , queries_names_to_config = queries_names_to_config
51+ neo4j_image = neo4j_image , queries_names_to_config = queries_names_to_config , query_analyzer = query_analyzer
5452 )
5553
5654 registry .schema .register_schema (schema = car_person_schema_root , branch = default_branch .name )
@@ -67,6 +65,7 @@ async def test_query_persons(neo4j_image: str, neo4j_runtime: Neo4jRuntime, car_
6765 profile_frequency = 50 ,
6866 nb_elements = 1000 ,
6967 graphs_output_location = graph_output_location ,
68+ query_analyzer = query_analyzer ,
7069 test_label = f" data: { neo4j_image } " + f" runtime: { neo4j_runtime } " ,
7170 )
7271
@@ -88,14 +87,16 @@ async def test_query_persons(neo4j_image: str, neo4j_runtime: Neo4jRuntime, car_
8887 ),
8988 ],
9089)
91- async def test_query_persons_with_isolated_cars (neo4j_image : str , neo4j_runtime : Neo4jRuntime , car_person_schema_root ):
90+ async def test_query_persons_with_isolated_cars (
91+ query_analyzer , neo4j_image : str , neo4j_runtime : Neo4jRuntime , car_person_schema_root
92+ ):
9293 queries_names_to_config = {
9394 NodeGetListQuery .name : QueryConfig (neo4j_runtime = neo4j_runtime ),
9495 NodeListGetAttributeQuery .name : QueryConfig (neo4j_runtime = neo4j_runtime ),
9596 NodeListGetInfoQuery .name : QueryConfig (neo4j_runtime = neo4j_runtime ),
9697 }
9798 db_profiling_queries , default_branch = await start_db_and_create_default_branch (
98- neo4j_image = neo4j_image , queries_names_to_config = queries_names_to_config
99+ neo4j_image = neo4j_image , queries_names_to_config = queries_names_to_config , query_analyzer = query_analyzer
99100 )
100101
101102 registry .schema .register_schema (schema = car_person_schema_root , branch = default_branch .name )
@@ -117,6 +118,7 @@ async def test_query_persons_with_isolated_cars(neo4j_image: str, neo4j_runtime:
117118 profile_frequency = 50 ,
118119 nb_elements = 1000 ,
119120 graphs_output_location = graph_output_location ,
121+ query_analyzer = query_analyzer ,
120122 test_label = f" data: { neo4j_image } " + f" runtime: { neo4j_runtime } " ,
121123 )
122124
@@ -138,14 +140,16 @@ async def test_query_persons_with_isolated_cars(neo4j_image: str, neo4j_runtime:
138140 ),
139141 ],
140142)
141- async def test_query_persons_with_connected_cars (neo4j_image : str , neo4j_runtime : Neo4jRuntime , car_person_schema_root ):
143+ async def test_query_persons_with_connected_cars (
144+ query_analyzer , neo4j_image : str , neo4j_runtime : Neo4jRuntime , car_person_schema_root
145+ ):
142146 queries_names_to_config = {
143147 NodeGetListQuery .name : QueryConfig (neo4j_runtime = neo4j_runtime ),
144148 NodeListGetAttributeQuery .name : QueryConfig (neo4j_runtime = neo4j_runtime ),
145149 NodeListGetInfoQuery .name : QueryConfig (neo4j_runtime = neo4j_runtime ),
146150 }
147151 db_profiling_queries , default_branch = await start_db_and_create_default_branch (
148- neo4j_image = neo4j_image , queries_names_to_config = queries_names_to_config
152+ neo4j_image = neo4j_image , queries_names_to_config = queries_names_to_config , query_analyzer = query_analyzer
149153 )
150154
151155 registry .schema .register_schema (schema = car_person_schema_root , branch = default_branch .name )
@@ -163,5 +167,6 @@ async def test_query_persons_with_connected_cars(neo4j_image: str, neo4j_runtime
163167 profile_frequency = 50 ,
164168 nb_elements = 1000 ,
165169 graphs_output_location = graph_output_location ,
170+ query_analyzer = query_analyzer ,
166171 test_label = f" data: { neo4j_image } " + f" runtime: { neo4j_runtime } " ,
167172 )
0 commit comments