Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/tests/test_history_graph.py
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | with open(get_datafile(filename)) as file: | ||||
RevisionEntry(hash_to_bytes(graph_as_dict["rev"])), | RevisionEntry(hash_to_bytes(graph_as_dict["rev"])), | ||||
) | ) | ||||
print("Computed graph:", computed_graph) | print("Computed graph:", computed_graph) | ||||
assert computed_graph == expected_graph | assert computed_graph == expected_graph | ||||
origin_add_revision(provenance, entry, computed_graph) | origin_add_revision(provenance, entry, computed_graph) | ||||
if not batch: | if not batch: | ||||
provenance.commit() | provenance.flush() |