Skip to content

Commit f58e751

Browse files
committed
add test for ancestors_of()
1 parent 32f7199 commit f58e751

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/table/test_init.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ def test_snapshot_by_timestamp(table_v2: Table) -> None:
216216
)
217217

218218

219+
def test_ancestors_of(table_v2: Table) -> None:
220+
assert table_v2.metadata.ancestors_of(3055729675574597004) == [
221+
(3055729675574597004, 1555100955770),
222+
(3051729675574597004, 1515100955770),
223+
]
224+
225+
219226
def test_snapshot_by_id_does_not_exist(table_v2: Table) -> None:
220227
assert table_v2.snapshot_by_id(-1) is None
221228

0 commit comments

Comments
 (0)