Skip to content

Commit

Permalink
add overwrite_graph coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Sep 30, 2024
1 parent eb7c2cc commit 81a1fba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,18 @@ def test_load_graph_from_nxadb_as_smart_graph():
assert G.has_node("Officer:36")
assert G.has_node("Mr.Hi:37")

assert db.collection("smart_person").properties()["smart"]

G = nxadb.Graph(
name=graph_name,
incoming_graph_data=G_NX_copy,
write_async=False,
overwrite_graph=True,
)

assert db.collection("smart_person").properties()["smart"]
assert G.nodes["Mr.Hi:0"]["club"] == "Mr.Hi"

db.delete_graph(graph_name, drop_collections=True)


Expand Down

0 comments on commit 81a1fba

Please sign in to comment.