Skip to content

Commit 9ca3538

Browse files
authored
Fix graph.vertex_collections docstring (#292)
1 parent a0e2efb commit 9ca3538

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arango/graph.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ def response_handler(resp: Response) -> bool:
107107
return self._execute(request, response_handler)
108108

109109
def vertex_collections(self) -> Result[List[str]]:
110-
"""Return vertex collections in the graph that are not orphaned.
110+
"""Return vertex collections in the graph.
111111
112-
:return: Names of vertex collections that are not orphaned.
112+
:return: Names of vertex collections in Edge Definitions and Orphan Collections.
113113
:rtype: [str]
114114
:raise arango.exceptions.VertexCollectionListError: If retrieval fails.
115115
"""

tests/test_graph.py

+1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ def test_create_graph_with_edge_definition(db):
330330
orphan_collections=[ovcol_name],
331331
)
332332
assert edge_definition in new_graph.edge_definitions()
333+
assert ovcol_name in new_graph.vertex_collections()
333334

334335

335336
def test_vertex_management(fvcol, bad_fvcol, fvdocs):

0 commit comments

Comments
 (0)