Skip to content

Commit d506544

Browse files
committed
Fixing test issues
1 parent a14feb1 commit d506544

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

arangoasync/typings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ class QueryExecutionPlan(JsonWrapper):
12651265
"""The execution plan of an AQL query.
12661266
12671267
References:
1268-
- `plan https://docs.arangodb.com/stable/develop/http-api/queries/aql-queries/#create-a-cursor_res_201_extra_plan`__
1268+
- `plan <https://docs.arangodb.com/stable/develop/http-api/queries/aql-queries/#create-a-cursor_res_201_extra_plan>`__
12691269
""" # noqa: E501
12701270

12711271
def __init__(self, data: Json) -> None:

tests/test_cursor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
@pytest.mark.asyncio
18-
async def test_cursor_basic_query(db, doc_col, docs):
18+
async def test_cursor_basic_query(db, doc_col, docs, cluster):
1919
# Insert documents
2020
await asyncio.gather(*[doc_col.insert(doc) for doc in docs])
2121

@@ -49,7 +49,8 @@ async def test_cursor_basic_query(db, doc_col, docs):
4949
assert statistics.filtered == 0
5050
assert statistics.writes_ignored == 0
5151
assert statistics.execution_time > 0
52-
assert statistics.http_requests > 0
52+
if cluster:
53+
assert statistics.http_requests > 0
5354
assert statistics.scanned_full > 0
5455
assert "nodes" in statistics
5556

0 commit comments

Comments
 (0)