| Conditions | 2 |
| Total Lines | 10 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import json |
||
| 9 | @pytest.mark.asyncio |
||
| 10 | async def test_gremlin_query(event_loop, cluster): |
||
| 11 | alias = { 'g': 'g' } |
||
| 12 | cluster = await driver.Cluster.open(event_loop, aliases=alias, hosts=['gremlin-server']) |
||
| 13 | client = await cluster.connect() |
||
| 14 | assert client.aliases == alias |
||
| 15 | resp = await client.submit("1 + 1") |
||
| 16 | async for msg in resp: |
||
| 17 | print(msg) |
||
| 18 | await cluster.close() |
||
| 19 | |||
| 39 |