Skip to content

Commit 8f8461e

Browse files
committed
make sure loaded
1 parent cc1999c commit 8f8461e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/test_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- '7474:7474'
2121
- '7687:7687'
2222
memgraph:
23-
image: memgraph/memgraph-mage:latest
23+
image: memgraph/memgraph-mage:3.3
2424
ports:
2525
- '7444:7444'
2626
- '7688:7687'

tests/test_transform_results.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
from reasoner_transpiler.cypher import get_query
33
import asyncio
44

5+
def test_load(db_driver):
6+
dialect, driver = db_driver
7+
result = driver.run("match (a)-[x]->(b) return count(*)", convert_to_trapi=False)
8+
assert result[0]["count(*)"] == 26
59

610
def test_bolt_driver_transform_results(db_driver):
711
qgraph = {
@@ -20,14 +24,14 @@ def test_bolt_driver_transform_results(db_driver):
2024
},
2125
}
2226
dialect, driver = db_driver
23-
output = driver.run(get_query(qgraph, dialect=dialect), convert_to_trapi=True, qgraph=qgraph)
27+
query = get_query(qgraph, dialect=dialect)
28+
print(query)
29+
output = driver.run(query, convert_to_trapi=True, qgraph=qgraph)
2430
assert len(output['results']) == 15
2531
for result in output["results"]:
2632
assert len(result["node_bindings"]) == 2
2733
assert len(result["analyses"]) == 1
2834
assert len(output['knowledge_graph']['nodes']) == 13
29-
for ag in output['auxiliary_graphs'].keys():
30-
print(ag)
3135
assert len(output['auxiliary_graphs']) == 14
3236

3337

0 commit comments

Comments
 (0)