mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-19 08:26:51 +00:00
fix: fix unit test error (#2085)
Co-authored-by: aries_ckt <916701291@qq.com> Co-authored-by: Appointat <kuda.czk@antgroup.com>
This commit is contained in:
@@ -46,9 +46,9 @@ def test_insert_and_get_triplets(tugraph_store_adapter: TuGraphStoreAdapter):
|
||||
assert len(triplets) == 1
|
||||
|
||||
|
||||
def test_query(store: TuGraphStore):
|
||||
def test_query(tugraph_store_adapter: TuGraphStoreAdapter):
|
||||
query = "MATCH (n)-[r]->(n1) return n,n1,r limit 3"
|
||||
result = store.query(query)
|
||||
result = tugraph_store_adapter.query(query)
|
||||
v_c = result.vertex_count
|
||||
e_c = result.edge_count
|
||||
assert v_c == 3 and e_c == 3
|
||||
|
Reference in New Issue
Block a user